blk-mq: allow 4x BLK_MAX_REQUEST_COUNT at blk_plug for multiple_queues
authorSong Liu <songliubraving@fb.com>
Tue, 7 Sep 2021 23:03:38 +0000 (16:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Sep 2021 23:05:12 +0000 (17:05 -0600)
commit7f2a6a69f7ced6db8220298e0497cf60482a9d4b
treea0cd135c8be2a9327e124f5788057ff9d83b547a
parent0dca4462ed0681649fdcd5700a6ddfbaa65fa178
blk-mq: allow 4x BLK_MAX_REQUEST_COUNT at blk_plug for multiple_queues

Limiting number of request to BLK_MAX_REQUEST_COUNT at blk_plug hurts
performance for large md arrays. [1] shows resync speed of md array drops
for md array with more than 16 HDDs.

Fix this by allowing more request at plug queue. The multiple_queue flag
is used to only apply higher limit to multiple queue cases.

[1] https://lore.kernel.org/linux-raid/CAFDAVznS71BXW8Jxv6k9dXc2iR3ysX3iZRBww_rzA8WifBFxGg@mail.gmail.com/
Tested-by: Marcin Wanat <marcin.wanat@gmail.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c