diff options
| author | 2019-10-17 12:18:32 +0200 | |
|---|---|---|
| committer | 2019-10-17 15:37:00 +0200 | |
| commit | 1e1d0f0b1a3e3533ea4cd4021eb251e53827c70b (patch) | |
| tree | 9541039708759d3cddf4a724090d3f3f54ab442d /lib/mpi/mpi-bit.c | |
| parent | exit: use pid_has_task() in do_wait() (diff) | |
| download | wireguard-linux-1e1d0f0b1a3e3533ea4cd4021eb251e53827c70b.tar.xz wireguard-linux-1e1d0f0b1a3e3533ea4cd4021eb251e53827c70b.zip | |
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 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
