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 10:34:29 +0000 (12:34 +0200)
commit4a967fe8b0438c73ec738dfa8a4dbb56b6523217
treeb86215ed50d8ea3d479cef1a3e12dddb7ff17aa9
parent533c60a0b97cee5daab376933f486207e6680fb7
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>
fs/ext4/super.c