From: Oleg Nesterov <oleg@tv-sign.ru>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Pavel Emelyanov <xemul@openvz.org>,
Roland McGrath <roland@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH -mm 1/2] send_sigqueue: don't take rcu lock
Date: Thu, 6 Mar 2008 00:53:13 +0300 [thread overview]
Message-ID: <20080305215313.GA3818@tv-sign.ru> (raw)
(depends on lock_task_sighand-add-rcu-lock-unlock.patch)
lock_task_sighand() was changed, send_sigqueue() doesn't need rcu_read_lock()
any longer.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 25/kernel/signal.c~1_SS_NO_RCU 2008-03-06 00:31:08.000000000 +0300
+++ 25/kernel/signal.c 2008-03-06 00:35:35.000000000 +0300
@@ -1311,8 +1311,6 @@ int send_sigqueue(int sig, struct sigque
* We return -1, when the task is marked exiting, so
* posix_timer_event can redirect it to the group leader
*/
- rcu_read_lock();
-
if (!likely(lock_task_sighand(p, &flags)))
goto out_err;
@@ -1323,8 +1321,6 @@ int send_sigqueue(int sig, struct sigque
unlock_task_sighand(p, &flags);
out_err:
- rcu_read_unlock();
-
return ret;
}
reply other threads:[~2008-03-05 21:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080305215313.GA3818@tv-sign.ru \
--to=oleg@tv-sign.ru \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
--cc=tglx@linutronix.de \
--cc=xemul@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®