sysrq: Emergency Remount R/O in reverse order
[firefly-linux-kernel-4.4.55.git] / fs / super.c
index 97280e76179c5f5dd79d109a527e23103c62b1b6..11afd67925bbd07bad0c25060ad32cec297de60b 100644 (file)
@@ -753,7 +753,7 @@ static void do_emergency_remount(struct work_struct *work)
        struct super_block *sb, *p = NULL;
 
        spin_lock(&sb_lock);
-       list_for_each_entry(sb, &super_blocks, s_list) {
+       list_for_each_entry_reverse(sb, &super_blocks, s_list) {
                if (hlist_unhashed(&sb->s_instances))
                        continue;
                sb->s_count++;