aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/raid5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index cc055da02e2a..9168173deaf3 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3608,7 +3608,7 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
3608 */ 3608 */
3609 set_bit(R5_Insync, &dev->flags); 3609 set_bit(R5_Insync, &dev->flags);
3610 3610
3611 if (rdev && test_bit(R5_WriteError, &dev->flags)) { 3611 if (test_bit(R5_WriteError, &dev->flags)) {
3612 /* This flag does not apply to '.replacement' 3612 /* This flag does not apply to '.replacement'
3613 * only to .rdev, so make sure to check that*/ 3613 * only to .rdev, so make sure to check that*/
3614 struct md_rdev *rdev2 = rcu_dereference( 3614 struct md_rdev *rdev2 = rcu_dereference(
@@ -3621,7 +3621,7 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
3621 } else 3621 } else
3622 clear_bit(R5_WriteError, &dev->flags); 3622 clear_bit(R5_WriteError, &dev->flags);
3623 } 3623 }
3624 if (rdev && test_bit(R5_MadeGood, &dev->flags)) { 3624 if (test_bit(R5_MadeGood, &dev->flags)) {
3625 /* This flag does not apply to '.replacement' 3625 /* This flag does not apply to '.replacement'
3626 * only to .rdev, so make sure to check that*/ 3626 * only to .rdev, so make sure to check that*/
3627 struct md_rdev *rdev2 = rcu_dereference( 3627 struct md_rdev *rdev2 = rcu_dereference(