mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org,
	mathieu.desnoyers@polymtl.ca, mingo@elte.hu, hch@infradead.org,
	mmlnx@us.ibm.com, dipankar@in.ibm.com, dsmith@redhat.com,
	rostedt@goodmis.org, adrian.bunk@movial.fi,
	a.p.zijlstra@chello.nl, ego@in.ibm.com, niv@us.ibm.com,
	dvhltc@us.ibm.com, rusty@au1.ibm.com,
	jkenisto@linux.vnet.ibm.com, oleg@tv-sign.ru,
	jamesclhuang@yahoo.com
Subject: Re: [PATCH 0/5] call_rcu_sched() series
Date: Mon, 14 Apr 2008 18:45:44 -0700	[thread overview]
Message-ID: <20080414184544.16ae4123.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080414183312.eba58a41.akpm@linux-foundation.org>

On Mon, 14 Apr 2008 18:33:12 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:

> On Sun, 13 Apr 2008 20:58:48 -0700 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> wrote:
> 
> > This series adds call_rcu_sched(), applies some fixes to RCU Classic,
> > adds rcu_barrier_sched(), updates rcutorture, and updates the RCU
> > documentation.
> 
> Some massaging was needed here to make these apply against the
> RCU changes in git-sched.
> 
> All fairly simple, except I don't know if these:
> 
> static inline void rcu_enter_nohz(void)
> {
> 	smp_mb(); /* CPUs seeing ++ must see prior RCU read-side crit sects */
> 	__get_cpu_var(rcu_dyntick_sched).dynticks++;
> 	WARN_ON(__get_cpu_var(rcu_dyntick_sched).dynticks & 0x1);
> }
> 
> static inline void rcu_exit_nohz(void)
> {
> 	__get_cpu_var(rcu_dyntick_sched).dynticks++;
> 	smp_mb(); /* CPUs seeing ++ must see later RCU read-side crit sects */
> 	WARN_ON(!(__get_cpu_var(rcu_dyntick_sched).dynticks & 0x1));
> }
> 
> in include/linux/rcupreempt.h ended up the way we want them?

argh, I see.  It's all tangled up with the WARN_ON_SECS stuff.

Let me try to straighten it all out.

  reply	other threads:[~2008-04-15  1:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14  3:58 Paul E. McKenney
2008-04-14  4:00 ` [PATCH 1/5] Add call_rcu_sched() Paul E. McKenney
2008-04-14  4:01 ` [PATCH 2/5] Add memory barriers and comments to rcu_check_callbacks() Paul E. McKenney
2008-04-14  4:02 ` [PATCH 3/5] Add rcu_barrier_sched() and rcu_barrier_bh() Paul E. McKenney
2008-04-14  4:03 ` [PATCH 4/5] Add call_rcu_sched() and friends to rcutorture Paul E. McKenney
2008-04-14  4:04 ` [PATCH 5/5] 1Q08 RCU doc update, add call_rcu_sched() Paul E. McKenney
2008-04-15  1:33 ` [PATCH 0/5] call_rcu_sched() series Andrew Morton
2008-04-15  1:45   ` Andrew Morton [this message]
2008-04-15  1:48     ` Andrew Morton
2008-04-22  0:44 Paul E. McKenney
2008-04-22  0:45 ` Paul E. McKenney
2008-04-22  0:48 ` Paul E. McKenney
2008-04-22  0:51   ` Paul E. McKenney

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=20080414184544.16ae4123.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=a.p.zijlstra@chello.nl \
    --cc=adrian.bunk@movial.fi \
    --cc=dipankar@in.ibm.com \
    --cc=dsmith@redhat.com \
    --cc=dvhltc@us.ibm.com \
    --cc=ego@in.ibm.com \
    --cc=hch@infradead.org \
    --cc=jamesclhuang@yahoo.com \
    --cc=jkenisto@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@polymtl.ca \
    --cc=mingo@elte.hu \
    --cc=mmlnx@us.ibm.com \
    --cc=niv@us.ibm.com \
    --cc=oleg@tv-sign.ru \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=rostedt@goodmis.org \
    --cc=rusty@au1.ibm.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

Powered by JetHome