mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
MD RAID10: Fix oops when creating RAID10 arrays via dm-raid.c
Commit2863b9ebdidn't take into account the changes to add TRIM support to RAID10 (commit532a2a3fb). That is, when using dm-raid.c to create the RAID10 arrays, there is no mddev->gendisk or mddev->queue. The code added to support TRIM simply assumes that mddev->queue is available without checking. The result is an oops any time dm-raid.c attempts to create a RAID10 device. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
02b898f2f0
commit
ed30be077e
1 changed files with 9 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue