block: improve logic around when to sort a plug list
authorJens Axboe <axboe@kernel.dk>
Wed, 28 Nov 2018 00:13:56 +0000 (17:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Nov 2018 17:11:45 +0000 (10:11 -0700)
commitce5b009cff1961137127edf91f44effd0eec8ffd
tree065b5b09d76828805afa8692a284e694c8cb1203
parent4e6db0f21c99c25980c8d183f95cdb6ad64cebd2
block: improve logic around when to sort a plug list

Only do it if we have requests for multiple queues in the same
plug.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c
include/linux/blkdev.h