]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ext4: make ext4_lazyinit_thread freezable
authorLalith Rajendran <lalithkraj@google.com>
Thu, 18 Aug 2022 21:40:49 +0000 (21:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:18 +0000 (13:22 +0200)
commit 7fd31fe7425ee0f1b2009ba8c84399fd24af812c 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>
fs/ext4/super.c

index b2374eb4dd2880bda73ec0bafac78294d5f67f89..ce575cb9bc0e0e3b240e2d5c1211b2fccb08c4cc 100644 (file)
@@ -3157,6 +3157,7 @@ static int ext4_lazyinit_thread(void *arg)
        unsigned long next_wakeup, cur;
 
        BUG_ON(NULL == eli);
+       set_freezable();
 
 cont_thread:
        while (true) {