Re: [PATCH] signal: use kill_proc_info instead of kill_pid_info in kill_something_info

From: Oleg Nesterov
Date: Mon Mar 30 2020 - 04:46:42 EST


On 03/30, Zhiqiang Liu wrote:
>
> @@ -1552,12 +1552,8 @@ static int kill_something_info(int sig, struct kernel_siginfo *info, pid_t pid)
> {
> int ret;
>
> - if (pid > 0) {
> - rcu_read_lock();
> - ret = kill_pid_info(sig, info, find_vpid(pid));
> - rcu_read_unlock();
> - return ret;
> - }
> + if (pid > 0)
> + return kill_proc_info(sig, info, pid);
>

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>