Re: [PATCH RFC tip/core/rcu 02/10] rcu: make dead code really dead

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Monday, April 5, 2010 - 11:56 am

On Mon, Apr 05, 2010 at 02:49:28PM -0400, Mathieu Desnoyers wrote:

Just a cleanup.  In the case where the "break" could be executed,
control will never reach the RCU_SAVE_DYNTICK leg of the switch statement.

That said, yes, if control -could- reach the RCU_SAVE_DYNTICK when
this "break" statement was executed, we would have had a locking
problem.  But as it is, this change just makes the dead code really
all be dead so that gcc knows not to produce the corresponding binary.

							Thanx, Paul

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC tip/core/rcu 0/10] rcu: patches queued for 2.6.35, Paul E. McKenney, (Mon Apr 5, 11:34 am)
Re: [PATCH RFC tip/core/rcu 02/10] rcu: make dead code rea ..., Mathieu Desnoyers, (Mon Apr 5, 11:49 am)
Re: [PATCH RFC tip/core/rcu 02/10] rcu: make dead code rea ..., Paul E. McKenney, (Mon Apr 5, 11:56 am)