File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1024,6 +1024,13 @@ static void ext4_put_super(struct super_block *sb)
1024
1024
1025
1025
destroy_workqueue (sbi -> rsv_conversion_wq );
1026
1026
1027
+ /*
1028
+ * Unregister sysfs before destroying jbd2 journal.
1029
+ * Since we could still access attr_journal_task attribute via sysfs
1030
+ * path which could have sbi->s_journal->j_task as NULL
1031
+ */
1032
+ ext4_unregister_sysfs (sb );
1033
+
1027
1034
if (sbi -> s_journal ) {
1028
1035
aborted = is_journal_aborted (sbi -> s_journal );
1029
1036
err = jbd2_journal_destroy (sbi -> s_journal );
@@ -1034,7 +1041,6 @@ static void ext4_put_super(struct super_block *sb)
1034
1041
}
1035
1042
}
1036
1043
1037
- ext4_unregister_sysfs (sb );
1038
1044
ext4_es_unregister_shrinker (sbi );
1039
1045
del_timer_sync (& sbi -> s_err_report );
1040
1046
ext4_release_system_zone (sb );
You can’t perform that action at this time.
0 commit comments