summaryrefslogtreecommitdiff
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-11-27 17:13:56 -0700
committerJens Axboe <axboe@kernel.dk>2018-11-29 10:11:45 -0700
commitce5b009cff1961137127edf91f44effd0eec8ffd (patch)
tree065b5b09d76828805afa8692a284e694c8cb1203 /block/blk-core.c
parent4e6db0f21c99c25980c8d183f95cdb6ad64cebd2 (diff)
downloadlwn-ce5b009cff1961137127edf91f44effd0eec8ffd.tar.gz
lwn-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