aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/super.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 35ff9fef68bd..35bd0206bbb3 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2975,6 +2975,12 @@ static int ext4_register_li_request(struct super_block *sb,
2975 mutex_unlock(&ext4_li_info->li_list_mtx); 2975 mutex_unlock(&ext4_li_info->li_list_mtx);
2976 2976
2977 sbi->s_li_request = elr; 2977 sbi->s_li_request = elr;
2978 /*
2979 * set elr to NULL here since it has been inserted to
2980 * the request_list and the removal and free of it is
2981 * handled by ext4_clear_request_list from now on.
2982 */
2983 elr = NULL;
2978 2984
2979 if (!(ext4_li_info->li_state & EXT4_LAZYINIT_RUNNING)) { 2985 if (!(ext4_li_info->li_state & EXT4_LAZYINIT_RUNNING)) {
2980 ret = ext4_run_lazyinit_thread(); 2986 ret = ext4_run_lazyinit_thread();