btrfs: avoid blocking open_ctree from cleaner_kthread
[sfrench/cifs-2.6.git] / fs / btrfs / super.c
index bf70d33b57910f3bc821c1c7fce755103f5d8bba..60e7179ed4b77ff8dcd9de1d8eb1c0cebce9f95d 100644 (file)
@@ -1807,6 +1807,8 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
                        }
                }
                sb->s_flags &= ~MS_RDONLY;
+
+               fs_info->open = 1;
        }
 out:
        wake_up_process(fs_info->transaction_kthread);