public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] question for commit 2d01ddc86606 ("ext4: save error info to sb through journal if available")
@ 2021-08-25  2:13 yangerkun
  2021-08-25 10:25 ` Jan Kara
  0 siblings, 1 reply; 3+ messages in thread
From: yangerkun @ 2021-08-25  2:13 UTC (permalink / raw)
  To: Jan Kara; +Cc: Theodore Y . Ts'o, Ext4 Developers List, yangerkun

Hi Jan,

There is a question about 2d01ddc86606 ("ext4: save error info to sb 
through journal if available"). This commit describe that we can have 
checksum failure with follow case:

1. ext4_handle_error will call ext4_commit_super which write directly to 
the superblock
2. At the same time, jounalled update of the superblock is ongoing

However, after commit 05c2c00f3769 ("ext4: protect superblock 
modifications with a buffer lock"), all the update for superblock and 
the csum will be protected with buffer lock. It seems we won't get a 
csum error after that commit and the journal logic in 
flush_stashed_error_work seems useless.

Maybe there is something missing... Can you help to explain more for that...


Thanks,
Kun.

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

end of thread, other threads:[~2021-08-26  1:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-25  2:13 [QUESTION] question for commit 2d01ddc86606 ("ext4: save error info to sb through journal if available") yangerkun
2021-08-25 10:25 ` Jan Kara
2021-08-26  1:06   ` yangerkun

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