[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250903022815.109-1-anmuxixixi@gmail.com>
Date: Wed, 3 Sep 2025 10:28:15 +0800
From: YangWen <anmuxixixi@...il.com>
To: hirofumi@...l.parknet.co.jp
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fat: fix data-race between fat12_ent_put() and fat_mirror_bhs()
Hi,
OGAWA Hirofumi wrote:
> Sync mount doesn't try to keep all of consistency. It is trying to keep
> sync the minimum blocks for consistency. The primary should be always
> consistent, however this doesn't care much about mirror FAT.
Thanks a lot for your explanation. I understand your point and you are
right.I just noticed that in fat_mirror_bhs(), the buffer head "c_bh" actually
represents the mirror FAT blocks, and the code does:
if (sb->s_flags & SB_SYNCHRONOUS)
err = sync_dirty_buffer(c_bh);
So on -o sync mounts the mirror FAT blocks are also forced to disk
immediately.
Thanks.
Powered by blists - more mailing lists