projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae74589
)
[PATCH] md: fix bug where spares don't always get rebuilt properly when they become...
author
NeilBrown
<neilb@suse.de>
Sat, 28 Oct 2006 17:38:30 +0000
(10:38 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 28 Oct 2006 18:30:51 +0000
(11:30 -0700)
If save_raid_disk is >= 0, then the device could be a device that is already
in sync that is being re-added. So we need to default this value to -1.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index
7daa7b1
..
c40ce9f
100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-2003,6
+2003,7
@@
static mdk_rdev_t *md_import_device(dev_t newdev, int super_format, int super_mi
kobject_init(&rdev->kobj);
rdev->desc_nr = -1;
+ rdev->saved_raid_disk = -1;
rdev->flags = 0;
rdev->data_offset = 0;
rdev->sb_events = 0;