Re: Documentation/credentials.txt

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Friday, April 23, 2010 - 5:14 pm

On Fri, Apr 23, 2010 at 06:55:33PM -0500, Serge E. Hallyn wrote:

You are absolutely correct, good catch!!!

Now, a spinlock still does imply an RCU read-side critical section given
the following configuration options:

o	!CONFIG_PREEMPT

o	CONFIG_PREEMPT && CONFIG_TREE_RCU

o	CONFIG_PREEMPT && CONFIG_TINY_RCU

However, relying on this is usually bad practice, as such code is prone
to failure given the following configuration options:

o	CONFIG_PREEMPT && CONFIG_TREE_PREEMPT_RCU

o	CONFIG_PREEMPT_RT (given the -rt patchset)

And when I get my act together and complete CONFIG_TINY_PREEMPT_RCU,
then CONFIG_PREEMPT && CONFIG_TINY_PREEMPT_RCU will also invalidate
the assumption that holding a spinlock acts as an RCU read-side
critical section.

Did you want to submit a patch for this?

							Thanx, Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Documentation/credentials.txt, Serge E. Hallyn, (Fri Apr 23, 4:55 pm)
Re: Documentation/credentials.txt, Paul E. McKenney, (Fri Apr 23, 5:14 pm)
Re: Documentation/credentials.txt, Serge E. Hallyn, (Fri Apr 23, 5:46 pm)