|
|
@@ -3608,7 +3608,7 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
|
|
|
*/
|
|
|
set_bit(R5_Insync, &dev->flags);
|
|
|
|
|
|
- if (rdev && test_bit(R5_WriteError, &dev->flags)) {
|
|
|
+ if (test_bit(R5_WriteError, &dev->flags)) {
|
|
|
/* This flag does not apply to '.replacement'
|
|
|
* only to .rdev, so make sure to check that*/
|
|
|
struct md_rdev *rdev2 = rcu_dereference(
|
|
|
@@ -3621,7 +3621,7 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
|
|
|
} else
|
|
|
clear_bit(R5_WriteError, &dev->flags);
|
|
|
}
|
|
|
- if (rdev && test_bit(R5_MadeGood, &dev->flags)) {
|
|
|
+ if (test_bit(R5_MadeGood, &dev->flags)) {
|
|
|
/* This flag does not apply to '.replacement'
|
|
|
* only to .rdev, so make sure to check that*/
|
|
|
struct md_rdev *rdev2 = rcu_dereference(
|