summaryrefslogtreecommitdiffstats
path: root/drivers/md/linear.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-10-16 15:55:44 +1100
committerNeilBrown <neilb@suse.de>2009-10-16 15:55:44 +1100
commited9bfdf1a40952fd0f8094ec77f876b84ead69af (patch)
tree2b92f23e861fa2695a55a0cd797233d032634c9d /drivers/md/linear.h
parentf5efd45ae597c96ed017afad5662b67d55b402a0 (diff)
downloadblackbird-op-linux-ed9bfdf1a40952fd0f8094ec77f876b84ead69af.tar.gz
blackbird-op-linux-ed9bfdf1a40952fd0f8094ec77f876b84ead69af.zip
md: raid1/raid10: handle allocation errors during array setup.
Both raid1 and raid10 create a mempool during startup. If the 'alloc' function for this mempool fails, unplug_slaves is called. If that happens when the pool is being initialised, unplug_slaves will try to use the 'conf' structure that isn't filled in yet, and badness will happen. So ensure that unplug_slaves doesn't get called unless we know that the conf structure if fully initialised. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/linear.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud