|
@@ -900,6 +900,10 @@ int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info)
|
|
|
* dev-replace to start anyway.
|
|
* dev-replace to start anyway.
|
|
|
*/
|
|
*/
|
|
|
if (test_and_set_bit(BTRFS_FS_EXCL_OP, &fs_info->flags)) {
|
|
if (test_and_set_bit(BTRFS_FS_EXCL_OP, &fs_info->flags)) {
|
|
|
|
|
+ btrfs_dev_replace_write_lock(dev_replace);
|
|
|
|
|
+ dev_replace->replace_state =
|
|
|
|
|
+ BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED;
|
|
|
|
|
+ btrfs_dev_replace_write_unlock(dev_replace);
|
|
|
btrfs_info(fs_info,
|
|
btrfs_info(fs_info,
|
|
|
"cannot resume dev-replace, other exclusive operation running");
|
|
"cannot resume dev-replace, other exclusive operation running");
|
|
|
return 0;
|
|
return 0;
|