diff options
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index de7b2c897fe0..32b2ffbb5717 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c | |||
@@ -546,8 +546,10 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, | |||
546 | mutex_unlock(&fs_info->chunk_mutex); | 546 | mutex_unlock(&fs_info->chunk_mutex); |
547 | mutex_unlock(&fs_info->fs_devices->device_list_mutex); | 547 | mutex_unlock(&fs_info->fs_devices->device_list_mutex); |
548 | mutex_unlock(&uuid_mutex); | 548 | mutex_unlock(&uuid_mutex); |
549 | btrfs_rm_dev_replace_blocked(fs_info); | ||
549 | if (tgt_device) | 550 | if (tgt_device) |
550 | btrfs_destroy_dev_replace_tgtdev(fs_info, tgt_device); | 551 | btrfs_destroy_dev_replace_tgtdev(fs_info, tgt_device); |
552 | btrfs_rm_dev_replace_unblocked(fs_info); | ||
551 | mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); | 553 | mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); |
552 | 554 | ||
553 | return scrub_ret; | 555 | return scrub_ret; |