Thread (5 messages) 5 messages, 2 authors, 2014-02-27

Re: Query about might_sleep()

From: doug lkml <hidden>
Date: 2014-02-27 04:18:46

quoted
local_irq_save();
  some_function();
      rt_spin_lock() --> this calls __might_sleep
local_irq_restore(); --> In this case there's a bug right?
Yes, that's a bug. And that's why you'll see a lot of updates in the
-rt patch with things like: local_irq_save_nort(). And this is also the
cause of some of the #ifdef CONFIG_PREEMPT_RT_FULL. And what makes this
change so challenging ;-)
That clarifies my question. Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help