diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-11-28 03:13:56 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-29 20:11:45 +0300 |
commit | ce5b009cff1961137127edf91f44effd0eec8ffd (patch) | |
tree | 065b5b09d76828805afa8692a284e694c8cb1203 /include/linux/blkdev.h | |
parent | 4e6db0f21c99c25980c8d183f95cdb6ad64cebd2 (diff) | |
download | linux-ce5b009cff1961137127edf91f44effd0eec8ffd.tar.xz |
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 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 02732cae6080..08d940f85fa0 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1131,6 +1131,7 @@ struct blk_plug { struct list_head mq_list; /* blk-mq requests */ struct list_head cb_list; /* md requires an unplug callback */ unsigned short rq_count; + bool multiple_queues; }; #define BLK_MAX_REQUEST_COUNT 16 #define BLK_PLUG_FLUSH_SIZE (128 * 1024) |