aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index d12cf3e5e076..4ad269e66525 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -458,11 +458,9 @@ static int __rh_recovery_prepare(struct region_hash *rh)
458 /* Already quiesced ? */ 458 /* Already quiesced ? */
459 if (atomic_read(&reg->pending)) 459 if (atomic_read(&reg->pending))
460 list_del_init(&reg->list); 460 list_del_init(&reg->list);
461 else
462 list_move(&reg->list, &rh->quiesced_regions);
461 463
462 else {
463 list_del_init(&reg->list);
464 list_add(&reg->list, &rh->quiesced_regions);
465 }
466 spin_unlock_irq(&rh->region_lock); 464 spin_unlock_irq(&rh->region_lock);
467 465
468 return 1; 466 return 1;