xfs: defer AIO/DIO completions
authorChristoph Hellwig <hch@infradead.org>
Tue, 23 Aug 2011 08:28:10 +0000 (08:28 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:00 +0000 (21:15 -0500)
commitc859cdd1da008b3825555be3242908088a3de366
tree0d5c5d22d1d10a346da81990a3c94bfabfd03904
parent398d25ef23b10ce75424e0336a8d059dda1dbc8d
xfs: defer AIO/DIO completions

We really shouldn't complete AIO or DIO requests until we have finished
the unwritten extent conversion and size update.  This means fsync never
has to pick up any ioends as all work has been completed when signalling
I/O completion.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_aops.c
fs/xfs/xfs_aops.h