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>
Sat, 22 Dec 2018 15:23:01 +0000 (08:23 -0700)
commite444daad16a7b3fceae5ee4cf1377a952a7c8a30
treef7974ad993b0b69c6702c2330cc0df37ade170df
parent0012854fe02d63e11ee6f49a6c0c8cc479278853
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>
Tested-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/aio.c