diff options
| author | Dave Chinner <[email protected]> | 2016-02-07 23:46:51 +0000 |
|---|---|---|
| committer | Dave Chinner <[email protected]> | 2016-02-07 23:46:51 +0000 |
| commit | 4b680afb42b9e1b504444583098401a00e63ed3c (patch) | |
| tree | 6170a1d972054795a8a38afa7404dacb1230eaef /fs/xfs/libxfs/xfs_rtbitmap.c | |
| parent | Linux 4.5-rc2 (diff) | |
| download | kernel-4b680afb42b9e1b504444583098401a00e63ed3c.tar.gz kernel-4b680afb42b9e1b504444583098401a00e63ed3c.zip | |
xfs: lock rt summary inode on allocation
RT allocation can fail on a debug kernel with:
XFS: Assertion failed: xfs_isilocked(ip, XFS_ILOCK_SHARED|XFS_ILOCK_EXCL), file: fs/xfs/libxfs/xfs_bmap.c, line: 4039
When modifying the summary inode during allocation. This occurs
because the summary inode is never locked, and xfs_bmapi_*
operations expect it to be locked. The summary inode is effectively
protected byt he lock on the bitmap inode, so this really is only a
debug kernel issue.
Signed-off-by: Dave Chinner <[email protected]>
Tested-by: Ross Zwisler <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rtbitmap.c')
0 files changed, 0 insertions, 0 deletions
