diff options
author | Neil Brown <neilb@notabene.brown> | 2008-06-28 00:31:34 +0200 |
---|---|---|
committer | Neil Brown <neilb@notabene.brown> | 2008-06-28 00:31:34 +0200 |
commit | c7d0c941ae7f82940a13f785be70dc3097d96687 (patch) | |
tree | 3d9a59ae9367f3b8955580dd31d5927e7b6d1f42 /drivers/md/md.c | |
parent | rationalise return value for ->hot_add_disk method. (diff) | |
download | linux-c7d0c941ae7f82940a13f785be70dc3097d96687.tar.xz linux-c7d0c941ae7f82940a13f785be70dc3097d96687.zip |
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 <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 45e255d4916f..1442761ac98e 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; |