From: Neil Brown Date: Fri, 27 Jun 2008 22:31:34 +0000 (+1000) Subject: Don't reject HOT_REMOVE_DISK request for an array that is not yet started. X-Git-Tag: v2.6.27-rc1~957^2~45 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c7d0c941ae7f82940a13f785be70dc3097d96687;p=linux-2.6-omap-h63xx.git Don't reject HOT_REMOVE_DISK request for an array that is not yet started. 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 --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 45e255d4916..1442761ac98 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -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;