diff options
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r-- | drivers/md/dm-raid1.c | 6 |
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(®->pending)) | 459 | if (atomic_read(®->pending)) |
460 | list_del_init(®->list); | 460 | list_del_init(®->list); |
461 | else | ||
462 | list_move(®->list, &rh->quiesced_regions); | ||
461 | 463 | ||
462 | else { | ||
463 | list_del_init(®->list); | ||
464 | list_add(®->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; |