Re: [PATCH 1/3] dcache: add a new enum type for 'dentry_d_lock_class'
From: Steven Rostedt
Date: Fri Nov 15 2019 - 08:38:18 EST
On Fri, 15 Nov 2019 13:16:25 +0000
Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> I want to understand the overall situation. No argument, list_empty()
> in there is BS, for many reasons. But I wonder if trying to keep the
> current structure of the iterator _and_ the use of simple_rmdir()/simple_unlink()
> is the right approach.
My guess is that debugfs was written to be as simple as possible.
Nothing too complex. And in doing so, may have issues as you are
pointing out. Just a way to allow communications between user space and
kernel space (as tracefs started out).
BTW, what do you mean by "can debugfs_remove_recursive() rely upon the
lack of attempts to create new entries inside the subtree it's trying
to kill?"
-- Steve