[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202507281624542763Kn377WvUMXlKHVJUdNjA@zte.com.cn>
Date: Mon, 28 Jul 2025 16:24:54 +0800 (CST)
From: <fan.yu9@....com.cn>
To: <tglx@...utronix.de>, <frederic@...nel.org>, <peterz@...radead.org>,
<oleg@...hat.com>, <brauner@...nel.org>, <iro@...iv.linux.org.uk>,
<joel.granados@...nel.org>, <lorenzo.stoakes@...cle.com>
Cc: <linux-kernel@...r.kernel.org>, <xu.xin16@....com.cn>,
<yang.yang29@....com.cn>
Subject: [PATCH linux-next] signal: Remove outdated __send_signal references in
do_notify_parent
From: Fan Yu <fan.yu9@....com.cn>
The function __send_signal was renamed to __send_signal_locked in
commit 157cc18122b4 ("signal: Rename send_signal send_signal_locked"),
making the existing comments in do_notify_parent obsolete.
This patch removes these outdated references to maintain code clarity
and prevent confusion about the current implementation.
Signed-off-by: Fan Yu <fan.yu9@....com.cn>
---
kernel/signal.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/kernel/signal.c b/kernel/signal.c
index e2c928de7d2c..30a52d884f87 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -2251,10 +2251,7 @@ bool do_notify_parent(struct task_struct *tsk, int sig)
if (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN)
sig = 0;
}
- /*
- * Send with __send_signal as si_pid and si_uid are in the
- * parent's namespaces.
- */
+
if (valid_signal(sig) && sig)
__send_signal_locked(sig, &info, tsk->parent, PIDTYPE_TGID, false);
__wake_up_parent(tsk, tsk->parent);
--
2.25.1
Powered by blists - more mailing lists