Skip to content

Support cgroup1 in get from fd/file interfaces

Yosry Ahmed bpf cgroups lkml 2 versions – Applied

Status from this message: Applied to cgroup/for-6.1-fixes.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesApplied
  2. v13 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2cgroup: add cgroup_v1v2_get_from_[fd/file]()include/linux/cgroup.h kernel/cgroup/cgroup.c+45 -60 replies
2/2bpf: cgroup_iter: support cgroup1 using cgroup fdkernel/bpf/cgroup_iter.c+1 -12 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMartin KaFai Lau
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Support cgroup1 in get from fd/file interfaces

commit f3a2aebdd6fb ("cgroup: enable cgroup_get_from_file() on cgroup1") enabled using cgroup_get_from_file() and cgroup_get_from_fd() on cgroup1, to enable bpf cgroup_iter to attach to cgroup1.

Apparently, other callers depended on these functions only supporting cgroup2, so f3a2aebdd6 was reverted. Instead, add new separate interfaces that support both cgroup1 and cgroup2 and use them in bpf cgroup_iter.

Yosry Ahmed (2):
cgroup: add cgroup_v1v2_get_from_[fd/file]()
bpf: cgroup_iter: support cgroup1 using cgroup fd

 include/linux/cgroup.h   |  1 +
 kernel/bpf/cgroup_iter.c |  2 +-
 kernel/cgroup/cgroup.c   | 50 +++++++++++++++++++++++++++++++++++-----
 3 files changed, 46 insertions(+), 7 deletions(-)
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog