From 473fd93b4889df060639761dd8904f30628d6dc9 Mon Sep 17 00:00:00 2001 From: Lalith Rajendran Date: Thu, 18 Aug 2022 21:40:49 +0000 Subject: [PATCH] ext4: make ext4_lazyinit_thread freezable mainline inclusion from mainline-v6.1-rc1 commit 3b575495ab8dbb4dbe85b4ac7f991693c3668ff5 category: task bugzilla: https://gitee.com/openeuler/kernel/issues/I5YTB1 CVE: NA -------------------------------- ext4_lazyinit_thread is not set freezable. Hence when the thread calls try_to_freeze it doesn't freeze during suspend and continues to send requests to the storage during suspend, resulting in suspend failures. Cc: stable@kernel.org Signed-off-by: Lalith Rajendran Link: https://lore.kernel.org/r/20220818214049.1519544-1-lalithkraj@google.com Signed-off-by: Theodore Ts'o Signed-off-by: Xibo.Wang --- fs/ext4/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index e4abf3de254f..11f726c50beb 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3308,6 +3308,7 @@ static int ext4_lazyinit_thread(void *arg) unsigned long next_wakeup, cur; BUG_ON(NULL == eli); + set_freezable(); cont_thread: while (true) { -- Gitee