summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2015-02-23 21:45:32 +1100
committerBen Hutchings <ben@decadent.org.uk>2016-06-15 21:29:33 +0100
commit1c2ed3952e66315720f5753fe57465d9426ef332 (patch)
tree721ee0f7cea665fcd05cbdc423b5eabd3e0b1405 /include/linux
parentfc5321c3570a2854c74180922ef5549517201699 (diff)
xfs: take i_mmap_lock on extent manipulation operations
commit e8e9ad42c1f1e1bfbe0e8c32c8cac02e9ebfb7ef upstream. Now we have the i_mmap_lock being held across the page fault IO path, we now add extent manipulation operation exclusion by adding the lock to the paths that directly modify extent maps. This includes truncate, hole punching and other fallocate based operations. The operations will now take both the i_iolock and the i_mmaplock in exclusive mode, thereby ensuring that all IO and page faults block without holding any page locks while the extent manipulation is in progress. This gives us the lock order during truncate of i_iolock -> i_mmaplock -> page_lock -> i_lock, hence providing the same lock order as the iolock provides the normal IO path without involving the mmap_sem. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com> [bwh: Backported to 3.16: - We never need to break layouts, so take both i_iolock and i_mmaplock at the same time - Adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Cc: Jan Kara <jack@suse.cz> Cc: xfs@oss.sgi.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions