[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211011133245.1703103-1-brauner@kernel.org>
Date: Mon, 11 Oct 2021 15:32:43 +0200
From: Christian Brauner <brauner@...nel.org>
To: linux-kernel@...r.kernel.org, linux-mm@...ck.org
Cc: Vlastimil Babka <vbabka@...e.cz>,
Suren Baghdasaryan <surenb@...gle.com>,
Matthew Bobrowski <repnop@...gle.com>,
Alexander Duyck <alexander.h.duyck@...ux.intel.com>,
David Hildenbrand <david@...hat.com>, Jan Kara <jack@...e.cz>,
Christian Brauner <christian.brauner@...ntu.com>
Subject: [PATCH v2 0/2] Introduce simple pidfd to task helper
From: Christian Brauner <christian.brauner@...ntu.com>
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
--
2.30.2
Powered by blists - more mailing lists