]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Don't reject HOT_REMOVE_DISK request for an array that is not yet started.
authorNeil Brown <neilb@notabene.brown>
Fri, 27 Jun 2008 22:31:34 +0000 (08:31 +1000)
committerNeil Brown <neilb@notabene.brown>
Fri, 27 Jun 2008 22:31:34 +0000 (08:31 +1000)
There is really no need for this test here, and there are valid
cases for selectively removing devices from an array that
it not actually active.

Signed-off-by: Neil Brown <neilb@suse.de>
drivers/md/md.c

index 45e255d4916f93a1626fa585bfbea4520408cbac..1442761ac98e178dae511e545d078d3f41717c69 100644 (file)
@@ -4300,9 +4300,6 @@ static int hot_remove_disk(mddev_t * mddev, dev_t dev)
        char b[BDEVNAME_SIZE];
        mdk_rdev_t *rdev;
 
-       if (!mddev->pers)
-               return -ENODEV;
-
        rdev = find_rdev(mddev, dev);
        if (!rdev)
                return -ENXIO;