projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ea9c07
)
[PATCH] md: make sure recovery happens when add_new_disk is used for hot_add
author
NeilBrown
<neilb@cse.unsw.edu.au>
Wed, 22 Jun 2005 00:17:10 +0000
(17:17 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:42 +0000
(19:07 -0700)
Currently if add_new_disk is used to hot-add a drive to a degraded array,
recovery doesn't start ... because we didn't tell it to.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index d899204d3743372b68ae04f92f6cefd350db99e5..60835dfd058e5fd895b91d00e9128929dbc20bd8 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-2083,6
+2083,8
@@
static int add_new_disk(mddev_t * mddev, mdu_disk_info_t *info)
err = bind_rdev_to_array(rdev, mddev);
if (err)
export_rdev(rdev);
+
+ set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
if (mddev->thread)
md_wakeup_thread(mddev->thread);
return err;