projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
199050e
)
Don't reject HOT_REMOVE_DISK request for an array that is not yet started.
author
Neil Brown
<neilb@notabene.brown>
Fri, 27 Jun 2008 22:31:34 +0000
(08:31 +1000)
committer
Neil 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 45e255d4916f93a1626fa585bfbea4520408cbac..1442761ac98e178dae511e545d078d3f41717c69 100644
(file)
--- 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;