diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2019-10-17 12:18:32 +0200 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2019-10-17 15:37:00 +0200 |
commit | 1e1d0f0b1a3e3533ea4cd4021eb251e53827c70b (patch) | |
tree | 9541039708759d3cddf4a724090d3f3f54ab442d /tools/hv | |
parent | 1722c14a2097634a7ba37000c0ec7d9409918b64 (diff) | |
download | linux-1e1d0f0b1a3e3533ea4cd4021eb251e53827c70b.tar.bz2 |
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 'tools/hv')
0 files changed, 0 insertions, 0 deletions