[PATCH] Support residual io counts from io engines
authorJens Axboe <jens.axboe@oracle.com>
Tue, 6 Feb 2007 19:15:38 +0000 (20:15 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 6 Feb 2007 19:15:38 +0000 (20:15 +0100)
commitcec6b55da1c282b5b91ad346c7804171fccf151e
tree3e7a6c96378f23e62ccfd371940d069a5390cfd5
parent2fc2698113c087352c1851bf5ebfcad6adb53932
[PATCH] Support residual io counts from io engines

We need this for requeuing support, the network engine makes this
pretty apparent (it's not unusual to see short tranfers there).

Basically we add an xfer_buf and xfer_buflen member to the io_u,
and these are the fields that the io engine MUST use. That allows
fio to increment and reset these appropriately, and simply requeue
the io_u for service of the next part of it.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/libaio.c
engines/mmap.c
engines/net.c
engines/posixaio.c
engines/sg.c
engines/splice.c
engines/sync.c
fio.c
fio.h
io_u.c