Re: [PATCH 4/4] kernfs: Remove kernfs_rwsem from dentry revalidation

From: Sandeep Dhavale

Date: Fri Sep 11 2026 - 23:28:32 EST


Hi Shakeel,
> 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.

Thank you for your input! That may explain why I am unable to reproduce led by
memory stress narrative. Let me attempt to reproduce this first and I
will provide an update.

Thanks again,
Sandeep.