summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2016-09-08 19:49:06 +0200
committerShaohua Li <shli@fb.com>2016-09-21 18:09:44 +0200
commit1dffddddd8315863f1a6d79c512b737864ef6a1a (patch)
tree1272477cb253701ca63745f4e93af4cc1a1be07e /drivers/md/raid5.c
parentlib/raid6: Add AVX512 optimized xor_syndrome functions (diff)
downloadlinux-1dffddddd8315863f1a6d79c512b737864ef6a1a.tar.xz
linux-1dffddddd8315863f1a6d79c512b737864ef6a1a.zip
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: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index ee7fc3701700..5883ef0d95bf 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -7066,6 +7066,8 @@ static int raid5_run(struct mddev *mddev)
else
queue_flag_clear_unlocked(QUEUE_FLAG_DISCARD,
mddev->queue);
+
+ blk_queue_max_hw_sectors(mddev->queue, UINT_MAX);
}
if (journal_dev) {