Re: [RFC PATCH] kernfs: create raw version kernfs_path_len and kernfs_path

From: Shi, Yang
Date: Fri Feb 26 2016 - 15:23:23 EST


On 2/26/2016 12:15 PM, Steven Rostedt wrote:
On Fri, 26 Feb 2016 11:59:40 -0800
"Shi, Yang" <yang.shi@xxxxxxxxxx> wrote:


BTW, it sounds this is not the only point where kernfs_node could be
updated, __kernfs_remove should need synchronize_sched too.


Question is, can the kernfs of a cgroup be removed while the cgroup is
still active?

Hmm, it sounds unlikely to me.

Yang



I don't see the kernfs_rename_lock being held anywhere in that
remove. If it can be an issue there with this patch, then it's an issue
today, because the kernfs_mutex is not held by the tracepoint.

-- Steve