Re: [PATCH v3] jbd2: Fix potential data lost in recovering journal raced with synchronizing fs bdev

From: Theodore Ts'o
Date: Fri Oct 06 2023 - 14:07:43 EST



On Tue, 19 Sep 2023 09:25:25 +0800, Zhihao Cheng wrote:
> JBD2 makes sure journal data is fallen on fs device by sync_blockdev(),
> however, other process could intercept the EIO information from bdev's
> mapping, which leads journal recovering successful even EIO occurs during
> data written back to fs device.
>
> We found this problem in our product, iscsi + multipath is chosen for block
> device of ext4. Unstable network may trigger kpartx to rescan partitions in
> device mapper layer. Detailed process is shown as following:
>
> [...]

Applied, thanks!

[1/1] jbd2: Fix potential data lost in recovering journal raced with synchronizing fs bdev
commit: 61187fce8600e8ef90e601be84f9d0f3222c1206

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>