summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorLalith Rajendran <lalithkraj@google.com>2022-08-19 00:40:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-26 14:25:13 +0300
commitac66db1a436504159463f811b9e9864c1d2b03f1 (patch)
tree51d842c46cd549c03a692a38d9d74efd121c5f89 /fs/ext4
parentf34ab95162763cd7352f46df169296eec28b688d (diff)
downloadlinux-ac66db1a436504159463f811b9e9864c1d2b03f1.tar.xz
ext4: make ext4_lazyinit_thread freezable
commit 3b575495ab8dbb4dbe85b4ac7f991693c3668ff5 upstream. 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 <lalithkraj@google.com> Link: https://lore.kernel.org/r/20220818214049.1519544-1-lalithkraj@google.com Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 1a12b91bcc6c..fbdce7f105f3 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3550,6 +3550,7 @@ static int ext4_lazyinit_thread(void *arg)
unsigned long next_wakeup, cur;
BUG_ON(NULL == eli);
+ set_freezable();
cont_thread:
while (true) {