Skip to content

Introduce simple pidfd to task helper

Christian Brauner linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pid: add pidfd_get_task() helperinclude/linux/pid.h kernel/pid.c+37 -01 reply
2/2mm: use pidfd_get_task()mm/madvise.c mm/oom_kill.c+6 -242 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMatthew BobrowskiDavid Hildenbrand
1/2R-b A-b
2/2R-b A-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] Introduce simple pidfd to task helper

From: Christian Brauner <[email protected]>

Hey everyone,

This adds a simple helper to get rid of some code duplication introduced with the addition of two new pidfd-based syscalls in mm. We should've probably added the helper right away and I think I mentioned this during in the review on one of the revisions but we probably just lost track of it. If this looks ok to you, I'll queue this up for next.

/* v2 */
Add a note to the kernel doc what the caller is expected to clean up. No semantical changes.

Thanks!
Christian

Christian Brauner (2):
pid: add pidfd_get_task() helper
mm: use pidfd_get_task()

 include/linux/pid.h |  1 +
 kernel/pid.c        | 36 ++++++++++++++++++++++++++++++++++++
 mm/madvise.c        | 15 +++------------
 mm/oom_kill.c       | 15 +++------------
 4 files changed, 43 insertions(+), 24 deletions(-)

base-commit: 9e1ff307c779ce1f0f810c7ecce3d95bbae40896

Signature · 1 line
2.30.2