提交 10c2364e 编写于 作者: L Lalith Rajendran 提交者: Jialin Zhang

ext4: make ext4_lazyinit_thread freezable

stable inclusion
from stable-v5.10.150
commit ac66db1a436504159463f811b9e9864c1d2b03f1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ac66db1a436504159463f811b9e9864c1d2b03f1

--------------------------------

commit 3b575495 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: NLalith Rajendran <lalithkraj@google.com>
Link: https://lore.kernel.org/r/20220818214049.1519544-1-lalithkraj@google.comSigned-off-by: NTheodore Ts'o <tytso@mit.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NJialin Zhang <zhangjialin11@huawei.com>
上级 667e2790
...@@ -3594,6 +3594,7 @@ static int ext4_lazyinit_thread(void *arg) ...@@ -3594,6 +3594,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册