]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 8 Apr 2015 02:57:51 +0000 (12:57 +1000)
commit9f822392134ebd6634e0943f13f469c0fbba1d40
treef66335c3d76db853becb233c718c896e4604303e
parent9a5c257f57a76c3b4e5111d3968a03561a61aac7
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