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
..
2007-05-21 09:18:19 -07:00
2007-05-17 05:23:04 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:14:59 -07:00
2007-07-09 08:24:13 +01:00
2007-05-17 05:23:04 -07:00
2007-07-10 08:04:15 +02:00
2007-05-17 05:23:04 -07:00
2007-05-09 08:58:16 +02:00
2007-05-09 08:58:16 +02:00
2007-05-14 19:33:46 -04:00
2007-05-21 09:18:19 -07:00
2007-05-17 05:23:04 -07:00
2007-07-09 18:52:00 +02:00
2007-05-17 05:23:04 -07:00
2007-05-21 09:18:19 -07:00
2006-10-04 06:51:26 -06:00
2007-07-10 08:03:34 +02:00
2006-12-07 08:39:25 -08:00
2007-05-18 13:09:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-23 20:14:13 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:01 -07:00
2007-05-17 05:23:04 -07:00
2007-05-08 11:15:09 -07:00
2007-06-04 13:25:10 -07:00
2007-05-09 08:58:15 +02:00
2007-05-09 06:44:57 +02:00
2007-05-17 05:23:04 -07:00
2007-05-11 08:29:36 -07:00
2006-12-07 08:39:25 -08:00
2007-05-08 20:10:00 -07:00
2007-07-10 08:04:16 +02:00
2006-10-01 00:39:19 -07:00
2007-07-10 08:04:15 +02:00
2007-05-09 07:10:02 +02:00
2007-07-10 08:04:16 +02:00
2007-05-08 11:15:01 -07:00
2007-05-18 13:09:34 -07:00