Staging
v0.5.1
https://github.com/torvalds/linux
Revision 6b9656205469269c050963c71fca1998b247a560 authored by NeilBrown on 18 August 2010, 01:56:59 UTC, committed by NeilBrown on 18 August 2010, 02:04:32 UTC
md_check_recovery expects ->spare_active to return 'true' if any
spares were activated, but none of them do, so the consequent change
in 'degraded' is not notified through sysfs.

So count the number of spares activated, subtract it from 'degraded'
just once, and return it.

Reported-by: Adrian Drzewiecki <adriand@vmware.com>
Signed-off-by: NeilBrown <neilb@suse.de>
1 parent e6ffbcb
History
Tip revision: 6b9656205469269c050963c71fca1998b247a560 authored by NeilBrown on 18 August 2010, 01:56:59 UTC
md: provide appropriate return value for spare_active functions.
Tip revision: 6b96562
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 172.4 KB
Makefile -rw-r--r-- 50.5 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top