Re: [PATCH [RT] 11/14] optimize the !printk fastpath through the lock acquisition

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gregory Haskins
Date: Sunday, February 24, 2008 - 10:20 pm

Bill Huey (hui) wrote:

Note that might_sleep() already does a cond_resched() on the 
configurations that need it, so I am not sure what you are getting at 
here.  Is that not enough?



I dont quite understand this part either.  From my perspective, 
rt_spin*() functions are locking constructs that might sleep (or might 
spin with the new patches), and they happen to be BKL and wakeup 
transparent.  To me, either the might_sleep() is correct for all paths 
that don't fit the in_atomic-printk exception, or none of them are.

Are you saying that the modified logic that I introduced is broken?  Or 
that the original use of the might_sleep() annotation inside this 
function is broken?

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

Messages in current thread:
[PATCH [RT] 00/14] RFC - adaptive real-time locks, Gregory Haskins, (Thu Feb 21, 8:26 am)
[PATCH [RT] 03/14] x86: FIFO ticket spinlocks, Gregory Haskins, (Thu Feb 21, 8:26 am)
[PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Gregory Haskins, (Thu Feb 21, 8:26 am)
[PATCH [RT] 06/14] optimize rt lock wakeup, Gregory Haskins, (Thu Feb 21, 8:26 am)
[PATCH [RT] 07/14] adaptive real-time lock support, Gregory Haskins, (Thu Feb 21, 8:27 am)
[PATCH [RT] 09/14] adaptive mutexes, Gregory Haskins, (Thu Feb 21, 8:27 am)
[PATCH [RT] 10/14] adjust pi_lock usage in wakeup, Gregory Haskins, (Thu Feb 21, 8:27 am)
[PATCH [RT] 12/14] remove the extra call to try_to_take_lock, Gregory Haskins, (Thu Feb 21, 8:27 am)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Gregory Haskins, (Thu Feb 21, 9:05 am)
Re: [PATCH [RT] 10/14] adjust pi_lock usage in wakeup, Steven Rostedt, (Thu Feb 21, 9:48 am)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Peter W. Morreale, (Thu Feb 21, 10:04 am)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Sven-Thorsten Dietrich, (Thu Feb 21, 10:06 am)
Re: [PATCH [RT] 10/14] adjust pi_lock usage in wakeup, Peter W. Morreale, (Thu Feb 21, 10:09 am)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Ingo Molnar, (Thu Feb 21, 2:24 pm)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Bill Huey (hui), (Thu Feb 21, 2:33 pm)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Gregory Haskins, (Thu Feb 21, 2:40 pm)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Peter W. Morreale, (Thu Feb 21, 3:12 pm)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Peter W. Morreale, (Thu Feb 21, 3:42 pm)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Gregory Haskins, (Fri Feb 22, 6:29 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Steven Rostedt, (Fri Feb 22, 6:35 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Ingo Molnar, (Fri Feb 22, 6:35 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Peter Zijlstra, (Fri Feb 22, 6:40 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Steven Rostedt, (Fri Feb 22, 6:43 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Steven Rostedt, (Fri Feb 22, 6:46 am)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Paul E. McKenney, (Fri Feb 22, 12:08 pm)
Re: [PATCH [RT] 07/14] adaptive real-time lock support, Pavel Machek, (Fri Feb 22, 12:14 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Paul E. McKenney, (Fri Feb 22, 12:43 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Sven-Thorsten Dietrich, (Fri Feb 22, 12:55 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Peter W. Morreale, (Fri Feb 22, 1:15 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Peter W. Morreale, (Fri Feb 22, 1:36 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Sven-Thorsten Dietrich, (Sat Feb 23, 12:36 am)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Andrew Morton, (Sat Feb 23, 1:03 am)
Re: [PATCH [RT] 11/14] optimize the !printk fastpath throu ..., Gregory Haskins, (Sun Feb 24, 10:20 pm)