• N
    md: be more relaxed about stopping an array which isn't started. · 9ba3b7f5
    NeilBrown 提交于
    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: N"Baldysiak, Pawel" <pawel.baldysiak@intel.com>
    Signed-off-by: NNeilBrown <neilb@suse.de>
    9ba3b7f5
md.c 226.4 KB