Re: [PATCH v3] fuse: fix inode initialization race
From: Miklos Szeredi
Date: Wed Apr 01 2026 - 07:08:31 EST
On Fri, 27 Mar 2026 at 18:29, Horst Birthelmer <horst@xxxxxxxxxxxxxx> wrote:
>
> From: Horst Birthelmer <hbirthelmer@xxxxxxx>
>
> Fix a race between fuse_iget() and fuse_reverse_inval_inode() where
> invalidation can arrive while an inode is being initialized, causing
> the invalidation to be lost.
> By keeping the inode state I_NEW as long as the attributes are not valid
> the invalidation can wait until the inode is fully initialized.
>
> Suggested-by: Joanne Koong <joannelkoong@xxxxxxxxx>
> Signed-off-by: Horst Birthelmer <hbirthelmer@xxxxxxx>
Applied, thanks.
Miklos