-
- Downloads
xfs: remove i_iolock and use i_rwsem in the VFS inode instead
This patch drops the XFS-own i_iolock and uses the VFS i_rwsem which recently replaced i_mutex instead. This means we only have to take one lock instead of two in many fast path operations, and we can also shrink the xfs_inode structure. Thanks to the xfs_ilock family there is very little churn, the only thing of note is that we need to switch to use the lock_two_directory helper for taking the i_rwsem on two inodes in a few places to make sure our lock order matches the one used in the VFS. Signed-off-by:Christoph Hellwig <hch@lst.de> Tested-by:
Jens Axboe <axboe@fb.com> Reviewed-by:
Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by:
Dave Chinner <david@fromorbit.com>
Showing
- fs/xfs/xfs_aops.c 2 additions, 5 deletionsfs/xfs/xfs_aops.c
- fs/xfs/xfs_bmap_util.c 5 additions, 7 deletionsfs/xfs/xfs_bmap_util.c
- fs/xfs/xfs_dir2_readdir.c 0 additions, 2 deletionsfs/xfs/xfs_dir2_readdir.c
- fs/xfs/xfs_file.c 23 additions, 56 deletionsfs/xfs/xfs_file.c
- fs/xfs/xfs_icache.c 2 additions, 4 deletionsfs/xfs/xfs_icache.c
- fs/xfs/xfs_inode.c 33 additions, 49 deletionsfs/xfs/xfs_inode.c
- fs/xfs/xfs_inode.h 2 additions, 5 deletionsfs/xfs/xfs_inode.h
- fs/xfs/xfs_ioctl.c 1 addition, 1 deletionfs/xfs/xfs_ioctl.c
- fs/xfs/xfs_iops.c 6 additions, 8 deletionsfs/xfs/xfs_iops.c
- fs/xfs/xfs_pnfs.c 1 addition, 6 deletionsfs/xfs/xfs_pnfs.c
- fs/xfs/xfs_pnfs.h 2 additions, 2 deletionsfs/xfs/xfs_pnfs.h
- fs/xfs/xfs_reflink.c 5 additions, 9 deletionsfs/xfs/xfs_reflink.c
- fs/xfs/xfs_super.c 1 addition, 1 deletionfs/xfs/xfs_super.c
- fs/xfs/xfs_symlink.c 3 additions, 4 deletionsfs/xfs/xfs_symlink.c
Loading
Please register or sign in to comment