Re: [PATCH 06/20] sysfs: Use dentry_ops instead of directly playing with the dcache

Tejun Heo
2009-05-21T07:41:19Z

Eric W. Biederman wrote:
>> Ummm... what happens if sysfs recreates those identical nodes again
>> while the old dentries are lingering? The dead ones will linger till
>> the submounts are gone and then look ups after that will show the new
>> ones, right?
>
> Yep. On the vfs level. The sysfs dirent tree will reflect what is
> going on with the hardware.
>
> This is a vfs misfeature, that I hope someday we will get fixed.
> But for now it is better not to leak mount points. Especially
> since no one actually mounts things on sysfs.

fuse and debugfs do. :-P

Acked-by: Tejun Heo <tj@kernel.org>

--
tejun