Re: [PATCH cgroup/for-6.1-fixes] cgroup: Implement DEBUG_CGROUP_REF
From: Johannes Weiner
Date: Mon Oct 31 2022 - 12:59:20 EST
On Fri, Oct 28, 2022 at 10:35:28AM -1000, Tejun Heo wrote:
> It's really difficult to debug when cgroup or css refs leak. Let's add a
> debug option to force the refcnt function to not be inlined so that they can
> be kprobed for debugging.
>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> ---
> Applying this to for-6.1-fixes. Holler for any objections.
The out-of-line versions need EXPORT_SYMBOL as they're used by modules
(loop e.g.). Otherwise it looks good to me.