Re: [PATCH 4/4] kernfs: Remove kernfs_rwsem from dentry revalidation
From: Shakeel Butt
Date: Fri Sep 11 2026 - 23:09:54 EST
On Fri, Sep 11, 2026 at 02:11:53PM -0700, Sandeep Dhavale wrote:
> > Hi Sandeep, thanks for the report. Do you have a reproducer? If yes, can you
> > reproduce with this series?
> >
> Hi Shakeel,
> No luck with the reproducer yet, and reports have been sporadic.
>
> > I think first we need a real reproducer before considering anything. I would not
> > add a check unless we have proof that it is really needed.
>
> Ok, I understand. Do you have any opinion on the suspected call chain
> which makes dentry->d_inode = NULL; ?
I don't see how reclaim can set dentry->d_inode = NULL for a dentry with
elevated dentry->d_lockref.count because kernfs_dop_revalidate gets the dentry
whose dentry->d_lockref.count is elevated. Reclaim specifically skips such
dentries.