diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-03-06 17:08:30 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-03-11 20:27:56 -0700 |
commit | 8241f7f983b972823431d762f7c3c9fe0f2a7b00 (patch) | |
tree | ed006995943eda89d93ec36d8a0571088805aed0 /fs | |
parent | 19957a181608d25c8f4136652d0ea00b3738972d (diff) | |
download | linux-stable-8241f7f983b972823431d762f7c3c9fe0f2a7b00.tar.gz linux-stable-8241f7f983b972823431d762f7c3c9fe0f2a7b00.tar.bz2 linux-stable-8241f7f983b972823431d762f7c3c9fe0f2a7b00.zip |
xfs: don't iunlock the quota ip when quota block
In xfs_qm_dqalloc, we join the locked quota inode to the transaction we
use to allocate blocks. If the allocation or mapping fails, we're not
allowed to unlock the inode because the transaction code is in charge of
unlocking it for us. Therefore, remove the iunlock call to avoid
blowing asserts about unbalanced locking + mount hang.
Found by corrupting the AGF and allocating space in the filesystem
(quotacheck) immediately after mount. The upcoming agfl wrapping fixup
test will trigger this scenario.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_dquot.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index 43572f8a1b8e..2410acc900f0 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c @@ -394,8 +394,6 @@ xfs_qm_dqalloc( error1: xfs_defer_cancel(&dfops); error0: - xfs_iunlock(quotip, XFS_ILOCK_EXCL); - return error; } |