Re: [f2fs-dev] [PATCH] f2fs: annotate data races around fi->i_flags

From: Cen Zhang

Date: Wed Mar 18 2026 - 23:26:08 EST


Hi Eric,

> Is that really the correct Fixes commit? I don't see what it has to do
> with this issue.

You're right, commit 360985573b55 only remapped the flag values and is
not related to the race.

The race is between the lockless read of fi->i_flags in
f2fs_update_inode() (from the writeback path) and the writes from the
ioctl paths.

The read side goes back to:

19f99cee206c ("f2fs: add core inode operations")

which added:

ri->i_flags = cpu_to_le32(F2FS_I(inode)->i_flags);

I'll fix the Fixes tag in v2. Please let me know if my understanding is
correct.

Thanks,
Cen