diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:55:16 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:59:03 -0700 |
commit | df760471477400ccd3ddcea85d2d6d92f4dad28c (patch) | |
tree | 9b74afbb67bffc160e6522d9f5730befa4a7ef38 /fs/xfs/scrub/tempfile.c | |
parent | 34ef5e17d5fd62a49bd9790834560261ebdec607 (diff) | |
download | linux-df760471477400ccd3ddcea85d2d6d92f4dad28c.tar.gz linux-df760471477400ccd3ddcea85d2d6d92f4dad28c.tar.bz2 linux-df760471477400ccd3ddcea85d2d6d92f4dad28c.zip |
xfs: unlock new repair tempfiles after creation
After creation, drop the ILOCK on temporary files that have been created
to stage a repair.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/tempfile.c')
-rw-r--r-- | fs/xfs/scrub/tempfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/scrub/tempfile.c b/fs/xfs/scrub/tempfile.c index c72e447eb8ec..6f39504a216e 100644 --- a/fs/xfs/scrub/tempfile.c +++ b/fs/xfs/scrub/tempfile.c @@ -153,6 +153,7 @@ xrep_tempfile_create( xfs_qm_dqrele(pdqp); /* Finish setting up the incore / vfs context. */ + xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL); xfs_setup_iops(sc->tempip); xfs_finish_inode_setup(sc->tempip); @@ -168,6 +169,7 @@ out_release_inode: * transactions and deadlocks from xfs_inactive. */ if (sc->tempip) { + xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL); xfs_finish_inode_setup(sc->tempip); xchk_irele(sc, sc->tempip); } |