diff options
author | Lachlan McIlroy <lachlan@sgi.com> | 2007-05-07 23:50:12 -0400 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2007-05-07 23:50:12 -0400 |
commit | 71dfd5a396d11512aa6c8ed0d35b268bc084bb9b (patch) | |
tree | 843b46b1e42df50707c160650695e074f1e8d7f6 /fs/xfs/xfs_vnodeops.c | |
parent | 3a02ee1828915d6540b415a160344775e2a4f918 (diff) |
[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