Thread (4 messages) 4 messages, 4 authors, 2026-06-04

Re: [PATCH] ext4: fix LOGFLUSH shutdown ordering to allow ordered-mode data writeback

From: "Theodore Ts'o" <tytso@mit.edu>
Date: 2026-06-04 14:46:50
Also in: linux-fsdevel, lkml

On Fri, 24 Apr 2026 18:42:01 +0800, Zhang Yi wrote:
In EXT4_GOING_FLAGS_LOGFLUSH mode, the EXT4_FLAGS_SHUTDOWN flag was set
before calling ext4_force_commit().  This caused ordered-mode data
writeback (triggered by journal commit) to fail with -EIO, since
ext4_do_writepages() checks for the shutdown flag.  The journal would
then be aborted prematurely before the commit could succeed.

Fix this by calling ext4_force_commit() first, then setting the
shutdown flag, so that pending data can be written back correctly.

[...]
Applied, thanks!

[1/1] ext4: fix LOGFLUSH shutdown ordering to allow ordered-mode data writeback
      commit: d99748ef1695ce17eaf51c64b7a06952fa7cddab

Best regards,
-- 
Theodore Ts'o [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help