History

block: improve logic around when to sort a plug list

Only do it if we have requests for multiple queues in the same plug.

Jens Axboe committed 7 years ago

Commit ce5b0091 parent 4e6db0f3 files · +20 −5Browse files

Showing the changes to include/linux/blkdev.h (1 of 3 files). Show all

Unified · Split

include/linux/blkdev.h+1−0
@@ -1131,6 +1131,7 @@ struct blk_plug { · 1130 unmodified lines
11311131 struct list_head mq_list; /* blk-mq requests */
11321132 struct list_head cb_list; /* md requires an unplug callback */
11331133 unsigned short rq_count;
1134+ bool multiple_queues;
11341135 };
11351136 #define BLK_MAX_REQUEST_COUNT 16
11361137 #define BLK_PLUG_FLUSH_SIZE (128 * 1024)