Libaio engine support for iodepth_batch_complete=0
authorDan Ehrenberg <dehrenberg@google.com>
Sat, 23 Jul 2011 11:36:46 +0000 (13:36 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 23 Jul 2011 11:36:46 +0000 (13:36 +0200)
commit0b7fdba72ade6f642cc0bf86023a42a408544599
tree78873794ec8126b4773f9b58f147bbdcb66e1fc4
parent1f84f1d9f85fe17c83eba504e4fb9b09a082e517
Libaio engine support for iodepth_batch_complete=0

Previously, even if iodepth_batch_complete=0, the libaio engine
passed in non-zero values for the min_nr value for io_getevents.
This patch makes min_nr always 0 if iodepth_batch_complete == 0,
and if multiple events are required at a higher level, then
we poll io_getevents multiple times for the events.

Signed-off-by: Dan Ehrenberg <dehrenberg@google.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
engines/libaio.c