Fix fill_device with queue depth higher than 1
authorSteven Lang <tirea@google.com>
Mon, 13 Jun 2011 07:47:36 +0000 (09:47 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 13 Jun 2011 07:47:36 +0000 (09:47 +0200)
commitd06093e70ee89e8440431b78846fa3815a9cb89d
tree32b0225de6554b08c6d813baaa3fc8a0ad62f889
parentbd93e34b86e8f7c0fb6b2cf15866431a4dc81067
Fix fill_device with queue depth higher than 1

I found an interesting combination of using fill_device when the
iodepth is greater than 1.  All outstanding IO causes an ENOSPC error,
but only the first is treated specially.  The remainder come through
and cause an error exit condition when the IO queue is being cleared.
So it is impossible to use deep IO with fill device.

This patch should fix the issue.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fio.c