Re: [rt] __reacquire_lock_kernel bug?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: junjie cai <junjiec@...>
Cc: linux-kernel <linux-kernel@...>
Date: Thursday, June 12, 2008 - 8:06 am

On Thu, 12 Jun 2008, junjie cai wrote:

There is no BUG_ON in the code path where your stack trace comes from.
Unfortunately you omitted the interesting part of the message, which
is printed _before_ the stack trace:

"BUG: scheduling while atomic: .....
 

Sorry, I do not understand what you mean.
 

When you use rt you won't be in that code path. -rt uses the
preemptible BKL implementation.


That's ok, when we the task is preempted here. lock_depth needs to be
set to -1 before we call down() and it is restored
afterwards. preempt_schedule_irq() handles the BKL in the right way.

Thanks,

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

Messages in current thread:
[rt] __reacquire_lock_kernel bug?, junjie cai, (Thu Jun 12, 2:31 am)
Re: [rt] __reacquire_lock_kernel bug?, Thomas Gleixner, (Thu Jun 12, 8:06 am)