aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-11-27 19:13:56 -0500
committerJens Axboe <axboe@kernel.dk>2018-11-29 12:11:45 -0500
commitce5b009cff1961137127edf91f44effd0eec8ffd (patch)
tree065b5b09d76828805afa8692a284e694c8cb1203 /include/linux/blkdev.h
parent4e6db0f21c99c25980c8d183f95cdb6ad64cebd2 (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 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h1
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 {
1131 struct list_head mq_list; /* blk-mq requests */ 1131 struct list_head mq_list; /* blk-mq requests */
1132 struct list_head cb_list; /* md requires an unplug callback */ 1132 struct list_head cb_list; /* md requires an unplug callback */
1133 unsigned short rq_count; 1133 unsigned short rq_count;
1134 bool multiple_queues;
1134}; 1135};
1135#define BLK_MAX_REQUEST_COUNT 16 1136#define BLK_MAX_REQUEST_COUNT 16
1136#define BLK_PLUG_FLUSH_SIZE (128 * 1024) 1137#define BLK_PLUG_FLUSH_SIZE (128 * 1024)