summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
authorLachlan McIlroy2007-05-08 05:50:12 +0200
committerTim Shimmin2007-05-08 05:50:12 +0200
commit71dfd5a396d11512aa6c8ed0d35b268bc084bb9b (patch)
tree843b46b1e42df50707c160650695e074f1e8d7f6 /fs/xfs/xfs_vnodeops.c
parent[XFS] Get rid of redundant "required" in msg. (diff)
downloadkernel-qcow2-linux-71dfd5a396d11512aa6c8ed0d35b268bc084bb9b.tar.gz
kernel-qcow2-linux-71dfd5a396d11512aa6c8ed0d35b268bc084bb9b.tar.xz
kernel-qcow2-linux-71dfd5a396d11512aa6c8ed0d35b268bc084bb9b.zip
[XFS] Fix race in xfs_write() b/w dmapi callout and direct I/O checks.
In xfs_write() the iolock is dropped and reacquired in XFS_SEND_DATA() which means that the file could change from not-cached to cached and we need to redo the direct I/O checks. We should also redo the direct I/O checks when the file size changes regardless if O_APPEND is set or not. SGI-PV: 963483 SGI-Modid: xfs-linux-melb:xfs-kern:28440a Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
0 files changed, 0 insertions, 0 deletions