summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTao Cui <cuitao@kylinos.cn>2026-05-14 14:50:32 +0800
committerTejun Heo <tj@kernel.org>2026-05-14 11:22:55 -1000
commit009bcbd0b201d4dc125eb960a61cb6d4d9fdfc72 (patch)
tree1e47f948c6159c55a219ba2272991e9fa0c565c0 /include
parentc68095c4a4c919cbd7de016fdfa25d19fa918a74 (diff)
cgroup/rdma: add rdma.events to track resource limit exhaustion
Add per-device hierarchical event counters to track when RDMA resource limits are exceeded. The rdma.events file reports max event counts propagated upward from the cgroup whose limit was hit to all ancestors. This mirrors the design of pids.events, where events are attributed to the cgroup that imposed the limit, not necessarily the cgroup where the allocation was attempted. Userspace can monitor this file via poll/epoll for real-time notification of resource exhaustion. Signed-off-by: Tao Cui <cuitao@kylinos.cn> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cgroup_rdma.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cgroup_rdma.h b/include/linux/cgroup_rdma.h
index 80edae03c313..ac691fe7d3f5 100644
--- a/include/linux/cgroup_rdma.h
+++ b/include/linux/cgroup_rdma.h
@@ -24,6 +24,9 @@ struct rdma_cgroup {
* that belongs to this cgroup.
*/
struct list_head rpools;
+
+ /* Handle for rdma.events */
+ struct cgroup_file events_file;
};
struct rdmacg_device {