All of lore.kernel.org
 help / color / mirror / Atom feed
* Getting a process cgroup's path without sleeping
@ 2015-05-20 12:51 Nikolay Borisov
  0 siblings, 0 replies; only message in thread
From: Nikolay Borisov @ 2015-05-20 12:51 UTC (permalink / raw)
  To: cgroups-u79uwXL29TY76Z2rM5mHXA

Hello list,


I'm currently working on a modification to the kernel and I need to
query if the current is in the root cgroup or not. This can easily be
achieved by using task_cgroup_path, however it acquires cgroup_mutex
which can sleep. Unfortunately my usecase involves calling
task_cgroup_path in rcu read-side critical section and as you can
imagine this makes the RCU lock checking code to splat.

So my question is how to be able to safely get the cgroup path of the
current process (or any process) under rcu read side critical sections
e.g. not having to acquire the cgroup_mutex?


Regards,
Nikolay

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-20 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-20 12:51 Getting a process cgroup's path without sleeping Nikolay Borisov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.