aio: only use blk plugs for > 2 depth submissions
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 16:45:32 +0000 (09:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 16:45:32 +0000 (09:45 -0700)
commitd383ba29c90ecd5c1d9480d90a6a2576b8d4901f
tree7239f67ef6998789c3d7f2b4c43d294e78db897a
parent1d5b5c19487233b34563a9afbf56a7204e540672
aio: only use blk plugs for > 2 depth submissions

Plugging is meant to optimize submission of a string of IOs, if we don't
have more than 2 being submitted, don't bother setting up a plug.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/aio.c