Commit 3b575495 authored by Lalith Rajendran's avatar Lalith Rajendran Committed by Theodore Ts'o

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: default avatarLalith Rajendran <lalithkraj@google.com>
Link: https://lore.kernel.org/r/20220818214049.1519544-1-lalithkraj@google.comSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent f9c1f248
...@@ -3758,6 +3758,7 @@ static int ext4_lazyinit_thread(void *arg) ...@@ -3758,6 +3758,7 @@ static int ext4_lazyinit_thread(void *arg)
unsigned long next_wakeup, cur; unsigned long next_wakeup, cur;
BUG_ON(NULL == eli); BUG_ON(NULL == eli);
set_freezable();
cont_thread: cont_thread:
while (true) { while (true) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment