]> git.baikalelectronics.ru Git - kernel.git/commit
md-raid0: conditional mddev->queue access to suit dm-raid
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 8 May 2015 08:19:03 +0000 (18:19 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 8 May 2015 08:39:40 +0000 (18:39 +1000)
commite050b9fb9f71f1b6a0efa1077988735a4781f83a
treeeb4936369829f3e6f2233b621f2138f42d929ee3
parent194b7115c289879d9d371e5ad3e7d18c3489ecbf
md-raid0: conditional mddev->queue access to suit dm-raid

This patch is a prerequisite for dm-raid "raid0" support to allow
dm-raid to access the MD RAID0 personality doing unconditional
accesses to mddev->queue, which is NULL in case of dm-raid stacked on
top of MD.

Most of the conditional mddev->queue accesses made it to upstream but
this missing one, which prohibits md raid0 to set disk stack limits
(being done in dm core in case of md underneath dm).

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