From: Jonathan Brassow Date: Wed, 31 Oct 2012 00:42:30 +0000 (+1100) Subject: MD RAID10: Fix oops when creating RAID10 arrays via dm-raid.c X-Git-Tag: v3.7-rc4~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed30be077e705e0dff53bfc51d23feb8aeeab78f;p=pandora-kernel.git MD RAID10: Fix oops when creating RAID10 arrays via dm-raid.c Commit 2863b9eb didn't take into account the changes to add TRIM support to RAID10 (commit 532a2a3fb). 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 Signed-off-by: NeilBrown --- Reading git-diff-tree failed