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, 18 Dec 2018 15:29:58 +0000 (08:29 -0700)
commita79d40e9b0f309dcddc4e0bf5b64e51e28153e55
treef7974ad993b0b69c6702c2330cc0df37ade170df
parent2bc4ca9bb600cbe36941da2b2a67189fc4302a04
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