public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: Make ext4_lazyinit_thread freezable.
@ 2022-08-18 21:40 Lalith Rajendran
  2022-08-19  0:08 ` Darrick J. Wong
  2022-09-29 14:58 ` Theodore Ts'o
  0 siblings, 2 replies; 4+ messages in thread
From: Lalith Rajendran @ 2022-08-18 21:40 UTC (permalink / raw)
  To: tytso, dilger.kernel, linux-ext4, linux-kernel; +Cc: Lalith Rajendran

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.

Signed-off-by: Lalith Rajendran <lalithkraj@google.com>
---
 fs/ext4/super.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 9a66abcca1a85..d77e0904a1327 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3767,6 +3767,7 @@ static int ext4_lazyinit_thread(void *arg)
 	unsigned long next_wakeup, cur;
 
 	BUG_ON(NULL == eli);
+	set_freezable();
 
 cont_thread:
 	while (true) {
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-29 14:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-18 21:40 [PATCH] ext4: Make ext4_lazyinit_thread freezable Lalith Rajendran
2022-08-19  0:08 ` Darrick J. Wong
     [not found]   ` <CANscXK018_PSLPSeTyne7D+KWHa74kyHmdJ8Bxfxyf=5YMPSfw@mail.gmail.com>
2022-08-23 16:03     ` Darrick J. Wong
2022-09-29 14:58 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox