summaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-11-28 01:13:56 +0100
committerJens Axboe <axboe@kernel.dk>2018-11-29 18:11:45 +0100
commitce5b009cff1961137127edf91f44effd0eec8ffd (patch)
tree065b5b09d76828805afa8692a284e694c8cb1203 /block/blk-core.c
parentblk-mq: Add a NULL check in blk_mq_free_map_and_requests() (diff)
downloadlinux-ce5b009cff1961137127edf91f44effd0eec8ffd.tar.xz
linux-ce5b009cff1961137127edf91f44effd0eec8ffd.zip
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>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index be9233400314..d107d016b92b 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1780,6 +1780,7 @@ void blk_start_plug(struct blk_plug *plug)
INIT_LIST_HEAD(&plug->mq_list);
INIT_LIST_HEAD(&plug->cb_list);
plug->rq_count = 0;
+ plug->multiple_queues = false;
/*
* Store ordering should not be needed here, since a potential