mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
ext4: make ext4_lazyinit_thread freezable
commit 3b575495ab
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>
This commit is contained in:
parent
4a657319cf
commit
d0681b447f
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue