]> git.ipfire.org Git - thirdparty/linux.git/commit
cgroup/rdma: add rdma.events to track resource limit exhaustion
authorTao Cui <cuitao@kylinos.cn>
Thu, 14 May 2026 06:50:32 +0000 (14:50 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 14 May 2026 21:22:55 +0000 (11:22 -1000)
commit009bcbd0b201d4dc125eb960a61cb6d4d9fdfc72
tree1e47f948c6159c55a219ba2272991e9fa0c565c0
parentc68095c4a4c919cbd7de016fdfa25d19fa918a74
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>
include/linux/cgroup_rdma.h
kernel/cgroup/rdma.c