diff options
| author | Oleg Nesterov <[email protected]> | 2024-02-09 13:06:50 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-02-10 21:37:23 +0000 |
| commit | 81b9d8ac0640b285a3c369cd41a85f6c240d3a60 (patch) | |
| tree | 705697b20594d890f7494e2fd9ce6b3741ec59ef /fs/btrfs/dev-replace.c | |
| parent | signal: fill in si_code in prepare_kill_siginfo() (diff) | |
| download | kernel-81b9d8ac0640b285a3c369cd41a85f6c240d3a60.tar.gz kernel-81b9d8ac0640b285a3c369cd41a85f6c240d3a60.zip | |
pidfd: change pidfd_send_signal() to respect PIDFD_THREAD
Turn kill_pid_info() into kill_pid_info_type(), this allows to pass any
pid_type to group_send_sig_info(), despite its name it should work fine
even if type = PIDTYPE_PID.
Change pidfd_send_signal() to use PIDTYPE_PID or PIDTYPE_TGID depending
on PIDFD_THREAD.
While at it kill another TODO comment in pidfd_show_fdinfo(). As Christian
expains fdinfo reports f_flags, userspace can already detect PIDFD_THREAD.
Reviewed-by: Tycho Andersen <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
