Re: [PATCH v2 10/11] md/raid0: align bio to io_opt

Li Nan <[email protected]>
Newsgroups gmane.linux.raid
Message-ID <[email protected]>

在 2026/1/3 23:45, Yu Kuai 写道:
> 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]>
> ---
>   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);
>   }
>   

LGTM

Reviewed-by: Li Nan <[email protected]>

-- 
Thanks,
Nan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.