diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-11-27 17:13:56 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-29 10:11:45 -0700 |
commit | ce5b009cff1961137127edf91f44effd0eec8ffd (patch) | |
tree | 065b5b09d76828805afa8692a284e694c8cb1203 /block/blk-core.c | |
parent | 4e6db0f21c99c25980c8d183f95cdb6ad64cebd2 (diff) |
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.c | 1 |
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 |