commit | f2a371c5e74dd5685ab47effa4ac7b23b1fdaae5 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Mon Jan 09 00:46:41 2012 +1100 |
committer | NeilBrown <neilb@suse.de> | Wed Jan 11 08:35:14 2012 +1100 |
tree | e1960be50588ef0a4461fa54609df7ebea95eac5 | |
parent | 19d671695e1931ebfd75b2b888778201aefe35ca [diff] |
md: notify the 'degraded' sysfs attribute on failure. 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>