aio: make use of ring code optional
authorJens Axboe <axboe@kernel.dk>
Fri, 14 Dec 2012 12:27:55 +0000 (13:27 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Dec 2012 12:27:55 +0000 (13:27 +0100)
commit3daa3fbeb4a4355042f4d794e9f4365d2391e206
treed0deb929f53567ed1d54c7da73b902871e7fbcab
parentfe321d1f076744adc44ec9a9b80c30d2a66263b8
aio: make use of ring code optional

Make use of the ring optional. Nobody uses the aio user mappable ring,
yet we center our completion/submission interface around it. Allow a
user to pass in INT_MAX to io_queue_init() to signal that he doesn't
care about the ring, since he uses the regular getevents() to retrieve
events. I'd like to use 0 since that more elegantly mirrors size of
the ring, but that magic value is caught and rejected by the libaio
wrapper around io_queue_init()...

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/aio.c
include/linux/aio.h