Skip to content

Commit

Permalink
Don't reject HOT_REMOVE_DISK request for an array that is not yet sta…
Browse files Browse the repository at this point in the history
…rted.

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>
  • Loading branch information
Neil Brown committed Jun 27, 2008
1 parent 199050e commit c7d0c94
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c7d0c94

Please sign in to comment.