aio: add submission side request cache
authorJens Axboe <axboe@kernel.dk>
Fri, 4 Jan 2019 16:07:35 +0000 (09:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 6 Jan 2019 20:52:49 +0000 (13:52 -0700)
commit682d5b7f657ff6c6efc265866f7e13773fbceaa1
treeb53dccfb301248453fc065b4a359c5933cefc4f0
parentf5102277fedb47cb3c4386f3ebe46b2d9d94b7b9
aio: add submission side request cache

We have to add each submitted polled request to the io_context
poll_submitted list, which means we have to grab the poll_lock. We
already use the block plug to batch submissions if we're doing a batch
of IO submissions, extend that to cover the poll requests internally as
well.

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