libaio: pass in 0 for queue depth if we can
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Sep 2012 17:47:00 +0000 (11:47 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Sep 2012 17:51:33 +0000 (11:51 -0600)
commitc90e1017b9384b170d47b97d2353f7bff3b5a34d
tree7a4f288b571e29570ec5a1e54cdca69b463a69cb
parentb2cecdc28469f8042d6cc3d83d83b18086845f18
libaio: pass in 0 for queue depth if we can

We don't need the user ring, unless the job file specified
that we need it. So tell the kernel. Fall back to passing
in the normal queue depth, if the kernel doesn't support
disabling the user ring.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/libaio.c