aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/linux-2.6/xfs_ioctl.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2009-10-19 04:05:26 +0000
committerAlex Elder <aelder@sgi.com>2009-12-11 15:11:20 -0600
commit033da48fda9d56e28b3fe3ef87ef6fd43290f554 (patch)
tree0883ff1fd99a9d9bff00c2694e6b66ae12a39bba /fs/xfs/linux-2.6/xfs_ioctl.h
parent80641dc66a2d6dfb22af4413227a92b8ab84c7bb (diff)
xfs: reset the i_iolock lock class in the reclaim path
The iolock is used for protecting reads, writes and block truncates against each other. We have two classes of callers, the first one is induced by a file operation and requires a reference to the inode be held and not dropped after the operation is done: - xfs_vm_vmap, xfs_vn_fallocate, xfs_read, xfs_write, xfs_splice_read, xfs_splice_write and xfs_setattr are all implementations of VFS methods that require a live inode - xfs_getbmap and xfs_swap_extents are ioctl subcommand for which the same is true - xfs_truncate_file is only called on quota inodes just returned from xfs_iget - xfs_sync_inode_data does the lock just after an igrab() - xfs_filestream_associate and xfs_filestream_new_ag take the iolock on the parent inode of an inode which by VFS rules must be referenced And we have various calls to truncate blocks past EOF or the whole file when dropping the last reference to an inode. Unfortunately lockdep complains when we do memory allocations that can recurse into the filesystem in the first class because the second class happens to take the same lock. To avoid this re-init the iolock in the beginning of xfs_fs_clear_inode to get a new lock class. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_ioctl.h')
0 files changed, 0 insertions, 0 deletions