From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Oleg Nesterov <oleg@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, mingo@elte.hu
Subject: Re: [PATCH] rcu_sched_grace_period: kill the bogus flush_signals()
Date: Sun, 3 May 2009 16:36:08 -0700 [thread overview]
Message-ID: <20090503233608.GG7141@linux.vnet.ibm.com> (raw)
In-Reply-To: <20090503211118.GA22973@redhat.com>
On Sun, May 03, 2009 at 11:11:18PM +0200, Oleg Nesterov wrote:
> As a kernel thread, rcu_sched_grace_period() runs with all signals ignored.
> It can never receive a signal even if it sleeps in TASK_INTERRUPTIBLE, it
> needs the explicit allow_signal() to be visible for signals.
Good point!!!
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>
>
> --- PTRACE/kernel/rcupreempt.c~ 2009-04-09 00:39:10.000000000 +0200
> +++ PTRACE/kernel/rcupreempt.c 2009-05-03 02:17:11.000000000 +0200
> @@ -1356,17 +1356,11 @@ static int rcu_sched_grace_period(void *
>
> rcu_ctrlblk.sched_sleep = rcu_sched_sleeping;
> spin_unlock_irqrestore(&rcu_ctrlblk.schedlock, flags);
> - ret = 0;
> + ret = 0; /* unused */
> __wait_event_interruptible(rcu_ctrlblk.sched_wq,
> rcu_ctrlblk.sched_sleep != rcu_sched_sleeping,
> ret);
>
> - /*
> - * Signals would prevent us from sleeping, and we cannot
> - * do much with them in any case. So flush them.
> - */
> - if (ret)
> - flush_signals(current);
> couldsleepnext = 0;
>
> } while (!kthread_should_stop());
>
next prev parent reply other threads:[~2009-05-03 23:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-03 21:11 [PATCH] rcu_sched_grace_period: kill the bogus flush_signals() Oleg Nesterov
2009-05-03 23:36 ` Paul E. McKenney [this message]
2009-05-05 18:35 ` [tip:core/rcu] rcu: rcu_sched_grace_period(): " tip-bot for Oleg Nesterov
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=20090503233608.GG7141@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=oleg@redhat.com \
/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