[PATCH v5 1/2] cgroup: export cgroup_e_css()

Peng Yu yupeng0921 at gmail.com
Fri Sep 25 23:33:27 PDT 2026


The nvmet invokes the cgroup_e_css for each bio and under
the rcu protection.

Signed-off-by: Peng Yu <yupeng0921 at gmail.com>
---
 kernel/cgroup/cgroup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 2d532bf2c0c7..2cb0f1355c05 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -563,6 +563,7 @@ struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp,
 
 	return init_css_set.subsys[ss->id];
 }
+EXPORT_SYMBOL_GPL(cgroup_e_css);
 
 /**
  * cgroup_get_e_css - get a cgroup's effective css for the specified subsystem
-- 
2.53.0




More information about the Linux-nvme mailing list