diff options
author | Dave Chinner <dchinner@redhat.com> | 2015-02-23 21:47:29 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-02-23 21:47:29 +1100 |
commit | 723cac48473358939759885a18e8df113ea96138 (patch) | |
tree | 2733e572223f4b097fc282767394849d6522711b /fs/xfs/xfs_iops.c | |
parent | 0f9160b444e4de33b65dfcd3b901358a3129461a (diff) | |
download | op-kernel-dev-723cac48473358939759885a18e8df113ea96138.zip op-kernel-dev-723cac48473358939759885a18e8df113ea96138.tar.gz |
xfs: lock out page faults from extent swap operations
Extent swap operations are another extent manipulation operation
that we need to ensure does not race against mmap page faults. The
current code returns if the file is mapped prior to the swap being
done, but it could potentially race against new page faults while
the swap is in progress. Hence we should use the XFS_MMAPLOCK_EXCL
for this operation, too.
While there, fix the error path handling that can result in double
unlocks of the inodes when cancelling the swapext transaction.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_iops.c')
0 files changed, 0 insertions, 0 deletions