提交 1dffdddd 编写于 作者: S Shaohua Li

raid5: allow arbitrary max_hw_sectors

raid5 will split bio to proper size internally, there is no point to use
underlayer disk's max_hw_sectors. In my qemu system, without the change,
the raid5 only receives 128k size bio, which reduces the chance of bio
merge sending to underlayer disks.
Signed-off-by: NShaohua Li <shli@fb.com>
上级 694dda62
...@@ -7066,6 +7066,8 @@ static int raid5_run(struct mddev *mddev) ...@@ -7066,6 +7066,8 @@ static int raid5_run(struct mddev *mddev)
else else
queue_flag_clear_unlocked(QUEUE_FLAG_DISCARD, queue_flag_clear_unlocked(QUEUE_FLAG_DISCARD,
mddev->queue); mddev->queue);
blk_queue_max_hw_sectors(mddev->queue, UINT_MAX);
} }
if (journal_dev) { if (journal_dev) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册