bdev/aio: Set minimum events to 0 in io_getevents

The timeout is set to 0, so it never waits anyway. But
this should be 0.

Change-Id: I8b4058017a91b647ea9324f1474a732921c389f0
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/c/443647
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
Ben Walker 2019-02-06 15:34:16 -07:00 committed by Jim Harris
parent 5f959d5f0c
commit a1cea6f48f

View File

@ -243,7 +243,7 @@ bdev_aio_group_poll(void *arg)
timeout.tv_sec = 0;
timeout.tv_nsec = 0;
nr = io_getevents(group_ch->io_ctx, 1, SPDK_AIO_QUEUE_DEPTH,
nr = io_getevents(group_ch->io_ctx, 0, SPDK_AIO_QUEUE_DEPTH,
events, &timeout);
if (nr < 0) {