md raid0: access mddev->queue (request queue member) conditionally because it is...
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 13 Feb 2015 18:48:01 +0000 (19:48 +0100)
committerNeilBrown <neilb@suse.de>
Tue, 21 Apr 2015 22:00:41 +0000 (08:00 +1000)
commit753f2856cda2a130d38ebc3db97bff66c1ef3ca7
tree1b390d200431d9f6291a428eb24b99eb796ea99d
parentac8fa4196d205ac8fff3f8932bddbad4f16e4110
md raid0: access mddev->queue (request queue member) conditionally because it is not set when accessed from dm-raid

The patch makes 3 references to mddev->queue in the raid0 personality
conditional in order to allow for it to be accessed from dm-raid.
Mandatory, because md instances underneath dm-raid don't manage
a request queue of their own which'd lead to oopses without the patch.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Tested-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid0.c