linux/fs/xfs/linux-2.6
Lachlan McIlroy 71dfd5a396 [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>
2007-05-08 13:50:12 +10:00
..
kmem.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
kmem.h
mrlock.h
mutex.h
sema.h
spin.h
sv.h
time.h
xfs_aops.c [XFS] Fix to prevent the notorious 'NULL files' problem after a crash. 2007-05-08 13:49:46 +10:00
xfs_aops.h
xfs_buf.c [XFS] Export via a function xfs_buftarg_list for use by kdb/xfsidbg. 2007-05-08 13:49:59 +10:00
xfs_buf.h [XFS] Export via a function xfs_buftarg_list for use by kdb/xfsidbg. 2007-05-08 13:49:59 +10:00
xfs_cred.h
xfs_dmapi_priv.h
xfs_export.c
xfs_export.h
xfs_file.c
xfs_fs_subr.c [XFS] propogate return codes from flush routines 2007-05-08 13:49:27 +10:00
xfs_fs_subr.h [XFS] propogate return codes from flush routines 2007-05-08 13:49:27 +10:00
xfs_globals.c
xfs_globals.h
xfs_ioctl.c
xfs_ioctl32.c
xfs_ioctl32.h
xfs_iops.c
xfs_iops.h
xfs_linux.h
xfs_lrw.c [XFS] Fix race in xfs_write() b/w dmapi callout and direct I/O checks. 2007-05-08 13:50:12 +10:00
xfs_lrw.h
xfs_stats.c
xfs_stats.h
xfs_super.c slab allocators: Remove SLAB_DEBUG_INITIAL flag 2007-05-07 12:12:57 -07:00
xfs_super.h
xfs_sysctl.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
xfs_sysctl.h
xfs_version.h
xfs_vfs.c
xfs_vfs.h
xfs_vnode.c
xfs_vnode.h [XFS] propogate return codes from flush routines 2007-05-08 13:49:27 +10:00