md: notify the 'degraded' sysfs attribute on failure.
authorNeilBrown <neilb@suse.de>
Sun, 8 Jan 2012 13:46:41 +0000 (00:46 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 10 Jan 2012 21:35:14 +0000 (08:35 +1100)
We currently only 'notify' changes to the 'degraded' attribute
when it decreases, not when it increases.

Notifying on failure is a little awkward as it happen in
interrupt context.
So instead, notify when we remove the failed device from the array,
which is very soon afterwards.

Reported-and-tested-by: Mikhail Balabin <mbalabin@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>

No differences found