aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 56e24c072b62..d7690f86fdb9 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1501,12 +1501,12 @@ static void error(struct mddev *mddev, struct md_rdev *rdev)
1501 mddev->degraded++; 1501 mddev->degraded++;
1502 set_bit(Faulty, &rdev->flags); 1502 set_bit(Faulty, &rdev->flags);
1503 spin_unlock_irqrestore(&conf->device_lock, flags); 1503 spin_unlock_irqrestore(&conf->device_lock, flags);
1504 /*
1505 * if recovery is running, make sure it aborts.
1506 */
1507 set_bit(MD_RECOVERY_INTR, &mddev->recovery);
1508 } else 1504 } else
1509 set_bit(Faulty, &rdev->flags); 1505 set_bit(Faulty, &rdev->flags);
1506 /*
1507 * if recovery is running, make sure it aborts.
1508 */
1509 set_bit(MD_RECOVERY_INTR, &mddev->recovery);
1510 set_bit(MD_CHANGE_DEVS, &mddev->flags); 1510 set_bit(MD_CHANGE_DEVS, &mddev->flags);
1511 printk(KERN_ALERT 1511 printk(KERN_ALERT
1512 "md/raid1:%s: Disk failure on %s, disabling device.\n" 1512 "md/raid1:%s: Disk failure on %s, disabling device.\n"