Revision e3b9703e27aab3839dcdb76b00d98428b67d25b0 authored by NeilBrown on 04 August 2005, 19:53:34 UTC, committed by Linus Torvalds on 04 August 2005, 20:00:54 UTC
Firstly, R1BIO_Degraded was being set in a number of places in the resync code, but is never used there, so get rid of those settings. Then: When doing a resync, we want to clear the bit in the bitmap iff the array will be non-degraded when the sync has completed. However the current code would clear the bitmap if the array was non-degraded when the resync *started*, which obviously isn't right (it is for 'resync' but not for 'recovery' - i.e. rebuilding a failed drive). This patch calculated 'still_degraded' and uses the to tell bitmap_start_sync whether this sync should clear the corresponding bit. 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>
1 parent 193f1c9
File | Mode | Size |
---|---|---|
Documentation | ||
arch | ||
crypto | ||
drivers | ||
fs | ||
include | ||
init | ||
ipc | ||
kernel | ||
lib | ||
mm | ||
net | ||
scripts | ||
security | ||
sound | ||
usr | ||
COPYING | -rw-r--r-- | 18.3 KB |
CREDITS | -rw-r--r-- | 87.3 KB |
MAINTAINERS | -rw-r--r-- | 57.3 KB |
Makefile | -rw-r--r-- | 43.4 KB |
README | -rw-r--r-- | 14.2 KB |
REPORTING-BUGS | -rw-r--r-- | 2.9 KB |
Computing file changes ...