Fix arc_adapt() spinning in iterate_supers_type()
[zfs.git] / module / zfs / zpl_super.c
index d4d4e1b..eee4a50 100644 (file)
@@ -240,6 +240,10 @@ zpl_kill_sb(struct super_block *sb)
 {
        zfs_preumount(sb);
        kill_anon_super(sb);
+
+#ifdef HAVE_S_INSTANCES_LIST_HEAD
+       sb->s_instances.next = &(zpl_fs_type.fs_supers);
+#endif /* HAVE_S_INSTANCES_LIST_HEAD */
 }
 
 #ifdef HAVE_SHRINK