md: be more relaxed about stopping an array which isn't started.
authorNeilBrown <neilb@suse.de>
Tue, 9 Sep 2014 04:00:15 +0000 (14:00 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 14 Oct 2014 02:08:28 +0000 (13:08 +1100)
commit9ba3b7f5d025915be2b8709e5fd35c9c3e9f14c6
tree074ea9213eca55d8a6b7c96b671a10414018f097
parentc95e6385e8098ef549008ab29d671bf528a50043
md: be more relaxed about stopping an array which isn't started.

In general we don't allow an array to be stopped if it is in use.
However if the array hasn't really been started yet, then any
apparent use is an anomily, probably due to 'udev' or similar
having a look to see what is there.

This means that if something goes wrong while assembling an array
it cannot reliably be un-assembled - STOP_ARRAY could fail.
There is no value here, so change do_md_stop() to succeed
despite concurrent opens if the array has not yet been
activated.  i.e. if ->pers is NULL.

Reported-by: "Baldysiak, Pawel" <pawel.baldysiak@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
This page took 0.029432 seconds and 5 git commands to generate.