aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/super.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index fd51a4a266b6..ed5e80ef48c4 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2735,14 +2735,16 @@ static void ext4_remove_li_request(struct ext4_li_request *elr)
2735 2735
2736static void ext4_unregister_li_request(struct super_block *sb) 2736static void ext4_unregister_li_request(struct super_block *sb)
2737{ 2737{
2738 struct ext4_li_request *elr = EXT4_SB(sb)->s_li_request; 2738 mutex_lock(&ext4_li_mtx);
2739 2739 if (!ext4_li_info) {
2740 if (!ext4_li_info) 2740 mutex_unlock(&ext4_li_mtx);
2741 return; 2741 return;
2742 }
2742 2743
2743 mutex_lock(&ext4_li_info->li_list_mtx); 2744 mutex_lock(&ext4_li_info->li_list_mtx);
2744 ext4_remove_li_request(elr); 2745 ext4_remove_li_request(EXT4_SB(sb)->s_li_request);
2745 mutex_unlock(&ext4_li_info->li_list_mtx); 2746 mutex_unlock(&ext4_li_info->li_list_mtx);
2747 mutex_unlock(&ext4_li_mtx);
2746} 2748}
2747 2749
2748static struct task_struct *ext4_lazyinit_task; 2750static struct task_struct *ext4_lazyinit_task;