commit | 1e1d0f0b1a3e3533ea4cd4021eb251e53827c70b | [log] [tgz] |
---|---|---|
author | Christian Brauner <christian.brauner@ubuntu.com> | Thu Oct 17 12:18:32 2019 +0200 |
committer | Christian Brauner <christian.brauner@ubuntu.com> | Thu Oct 17 15:37:00 2019 +0200 |
tree | 9541039708759d3cddf4a724090d3f3f54ab442d | |
parent | 1722c14a2097634a7ba37000c0ec7d9409918b64 [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