Commit df760471 authored by Darrick J. Wong's avatar Darrick J. Wong

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: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 34ef5e17
...@@ -153,6 +153,7 @@ xrep_tempfile_create( ...@@ -153,6 +153,7 @@ xrep_tempfile_create(
xfs_qm_dqrele(pdqp); xfs_qm_dqrele(pdqp);
/* Finish setting up the incore / vfs context. */ /* Finish setting up the incore / vfs context. */
xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL);
xfs_setup_iops(sc->tempip); xfs_setup_iops(sc->tempip);
xfs_finish_inode_setup(sc->tempip); xfs_finish_inode_setup(sc->tempip);
...@@ -168,6 +169,7 @@ xrep_tempfile_create( ...@@ -168,6 +169,7 @@ xrep_tempfile_create(
* transactions and deadlocks from xfs_inactive. * transactions and deadlocks from xfs_inactive.
*/ */
if (sc->tempip) { if (sc->tempip) {
xfs_iunlock(sc->tempip, XFS_ILOCK_EXCL);
xfs_finish_inode_setup(sc->tempip); xfs_finish_inode_setup(sc->tempip);
xchk_irele(sc, sc->tempip); xchk_irele(sc, sc->tempip);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment