]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2422a18e8710202deed72717166c631146704e8d
treea0cd135c8be2a9327e124f5788057ff9d83b547a
parent704524864aa1d92dc298a7d6a7980ae41c0d3e6d
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