On Tue, Feb 03, 2026 at 03:32:04PM -0500, Waiman Long wrote:

> That is actually a concern that I have at the back of my mind. I can modify
> the patch to cache only the dentry and do get/put the mount every time which
> is much cheaper as it is a percpu counter.  In that way, a chdir(2) followed
> by a umount(2) shouldn't cause a -EBUSY. Right?

Quite - it will just retain a reference to dentry, with filesystem shutdown
being very unhappy about somebody retaining references to objects on the
filesystem about to be taken out...

Reply via email to