diff options
author | Lalith Rajendran <lalithkraj@google.com> | 2022-08-18 21:40:49 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-09-29 23:01:27 -0400 |
commit | 3b575495ab8dbb4dbe85b4ac7f991693c3668ff5 (patch) | |
tree | 363e4506300fffd1ee9a4c9777a26e6965c88b4e /fs/ext4 | |
parent | f9c1f248607d5546075d3f731e7607d5571f2b60 (diff) | |
download | linux-stable-3b575495ab8dbb4dbe85b4ac7f991693c3668ff5.tar.gz linux-stable-3b575495ab8dbb4dbe85b4ac7f991693c3668ff5.tar.bz2 linux-stable-3b575495ab8dbb4dbe85b4ac7f991693c3668ff5.zip |
ext4: make ext4_lazyinit_thread freezable
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index aba4b1fca9e4..6bb0f493221c 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3758,6 +3758,7 @@ static int ext4_lazyinit_thread(void *arg) unsigned long next_wakeup, cur; BUG_ON(NULL == eli); + set_freezable(); cont_thread: while (true) { |