md: make error_handler functions more uniform and correct.
authorNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:38:44 +0000 (14:38 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:38:44 +0000 (14:38 +1000)
- there is no need to test_bit Faulty, as that was already done in
  md_error which is the only caller of these functions.
- MD_CHANGE_DEVS should be set *after* faulty is set to ensure
  metadata is updated correctly.
- spinlock should be held while updating ->degraded.

Signed-off-by: NeilBrown <neilb@suse.de>

No differences found