[PATCH v3 10/11] md/raid0: align bio to io_opt
Yu Kuai <[email protected]>
| Newsgroups | gmane.linux.raid |
|---|---|
| Message-ID | <[email protected]> |
The impact is not so significant for raid0 compared to raid5, however it's still more appropriate to issue IOs evenly to underlying disks. Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Li Nan <[email protected]> --- drivers/md/raid0.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index f3814a69cd13..0ae44e3bfff2 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -29,8 +29,7 @@ module_param(default_layout, int, 0644); (1L << MD_HAS_PPL) | \ (1L << MD_HAS_MULTIPLE_PPLS) | \ (1L << MD_FAILLAST_DEV) | \ - (1L << MD_SERIALIZE_POLICY) | \ - (1L << MD_BIO_ALIGN)) + (1L << MD_SERIALIZE_POLICY)) /* * inform the user of the raid configuration @@ -398,6 +397,8 @@ static int raid0_set_limits(struct mddev *mddev) err = mddev_stack_rdev_limits(mddev, &lim, MDDEV_STACK_INTEGRITY); if (err) return err; + + md_config_align_limits(mddev, &lim); return queue_limits_set(mddev->gendisk->queue, &lim); } -- 2.51.0