diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-07-18 23:17:10 +0200 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-07-26 23:09:10 +0200 |
commit | fb511f2150174b18b28ad54708c1adda0df39b17 (patch) | |
tree | 2642c10c35a8dcbf7aa1e46115a5b48555aa258b /kernel/acct.c | |
parent | direct-io: move aio_complete into ->end_io (diff) | |
download | linux-fb511f2150174b18b28ad54708c1adda0df39b17.tar.xz linux-fb511f2150174b18b28ad54708c1adda0df39b17.zip |
xfs: move aio completion after unwritten extent conversion
If we write into an unwritten extent using AIO we need to complete the AIO
request after the extent conversion has finished. Without that a read could
race to see see the extent still unwritten and return zeros. For synchronous
I/O we already take care of that by flushing the xfsconvertd workqueue (which
might be a bit of overkill).
To do that add iocb and result fields to struct xfs_ioend, so that we can
call aio_complete from xfs_end_io after the extent conversion has happened.
Note that we need a new result field as io_error is used for positive errno
values, while the AIO code can return negative error values and positive
transfer sizes.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'kernel/acct.c')
0 files changed, 0 insertions, 0 deletions