summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2019-10-17 12:18:32 +0200
committerChristian Brauner <christian.brauner@ubuntu.com>2019-10-17 15:37:00 +0200
commit1e1d0f0b1a3e3533ea4cd4021eb251e53827c70b (patch)
tree9541039708759d3cddf4a724090d3f3f54ab442d /kernel/fork.c
parent1722c14a2097634a7ba37000c0ec7d9409918b64 (diff)
pid: use pid_has_task() in pidfd_open()
Use the new pid_has_task() helper in pidfd_open(). This simplifies the code and avoids taking rcu_read_{lock,unlock}() and leads to overall nicer code. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Link: https://lore.kernel.org/r/20191017101832.5985-5-christian.brauner@ubuntu.com
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions