David Chinner e927af90aa [XFS] Block on unwritten extent conversion during synchronous direct I/O.
Currently we do not wait on extent conversion to occur, and hence we can
return to userspace from a synchronous direct I/O write without having
completed all the actions in the write. Hence a read after the write may
see zeroes (unwritten extent) rather than the data that was written.

Block the I/O completion by triggering a synchronous workqueue flush to
ensure that the conversion has occurred before we return to userspace.

SGI-PV: 964092
SGI-Modid: xfs-linux-melb:xfs-kern:28775a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
2007-07-14 15:30:52 +10:00
..
2006-01-09 20:48:03 +01:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-05-08 13:50:19 +10:00
2007-05-08 13:50:19 +10:00
2007-05-09 08:57:56 +02:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00