md: raid5: add prerequisite to run underneath dm-raid
authorHeinz Mauelshagen <heinzm@redhat.com>
Tue, 3 May 2016 20:15:31 +0000 (22:15 +0200)
committerShaohua Li <shli@fb.com>
Mon, 9 May 2016 16:24:02 +0000 (09:24 -0700)
commitfe67d19a2d7b31f1c29efbe1819c921d4a9bb012
treebf491b1752b31fbce3f97fbf172dd600af667947
parent859644f0fa2141b5f7db0e3744999ec3bb5719d3
md: raid5: 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.

This patch adds a missing conditional to the raid5 personality.

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