md: raid10: add prerequisite to run underneath dm-raid
authorHeinz Mauelshagen <heinzm@redhat.com>
Tue, 3 May 2016 17:43:24 +0000 (19:43 +0200)
committerShaohua Li <shli@fb.com>
Mon, 9 May 2016 16:24:01 +0000 (09:24 -0700)
commit859644f0fa2141b5f7db0e3744999ec3bb5719d3
tree22d69e0c48a8336b1a90583a02aae779ae6bb02d
parent092398dce8c2406bfb0c9eebc3e764ff2ddb62a8
md: raid10: add prerequisite to run underneath dm-raid

In case md runs underneath the dm-raid target, the mddev does not have
a request queue or gendisk, thus avoid accesses to it.

This patch adds two missing conditionals to the raid10 personality.

Signed-of-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid10.c