Skip to content
Commit 6f8d0c77 authored by NeilBrown's avatar NeilBrown
Browse files

md: make error_handler functions more uniform and correct.



- 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: default avatarNeilBrown <neilb@suse.de>

  
parent 92f861a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment