Only do it if we have requests for multiple queues in the same plug.
Showing the changes to include/linux/blkdev.h (1 of 3 files). Show all
Unified · Split
| @@ -1131,6 +1131,7 @@ struct blk_plug { · 1130 unmodified lines | ||
| 1131 | 1131 | struct list_head mq_list; /* blk-mq requests */ |
| 1132 | 1132 | struct list_head cb_list; /* md requires an unplug callback */ |
| 1133 | 1133 | unsigned short rq_count; |
| 1134 | + bool multiple_queues; | |
| 1134 | 1135 | }; |
| 1135 | 1136 | #define BLK_MAX_REQUEST_COUNT 16 |
| 1136 | 1137 | #define BLK_PLUG_FLUSH_SIZE (128 * 1024) |