cgroup: support to enable nmi-safe css_rstat_updated
Add necessary infrastructure to enable the nmi-safe execution of css_rstat_updated(). Currently css_rstat_updated() takes a per-cpu per-css raw spinlock to add the given css in the per-cpu per-css update tree. However the kernel can not spin in nmi context, so we need to remove the spinning on the raw spinlock in css_rstat_updated(). To support lockless css_rstat_updated(), let's add necessary data structures in the css and ss structures. Signed-off-by:Shakeel Butt <shakeel.butt@linux.dev> Tested-by:
JP Kobryn <inwardvessel@gmail.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
Loading
Please sign in to comment