]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid0: Ignore RAID0 layout if the second zone has only one device
authorPascal Hambourg <pascal@plouf.fr.eu.org>
Wed, 13 Apr 2022 06:53:56 +0000 (08:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:28 +0000 (18:36 +0200)
commitee23ae7ecd37763400be3807bf410441d21d00ed
treedff82c50b375938c78efb8b17200ef7bf9df6994
parent0adecdec64d7e8fd520638d401217e591edcf2c7
md/raid0: Ignore RAID0 layout if the second zone has only one device

commit 2c04a8d21ff528d63521843d5313b212d75515e0 upstream.

The RAID0 layout is irrelevant if all members have the same size so the
array has only one zone. It is *also* irrelevant if the array has two
zones and the second zone has only one device, for example if the array
has two members of different sizes.

So in that case it makes sense to allow assembly even when the layout is
undefined, like what is done when the array has only one zone.

Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Pascal Hambourg <pascal@plouf.fr.eu.org>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid0.c