This is an rt_mutex in RT, non threaded IRS can't sleep, the waiting queue is locked by an rt_mutex. Any better ideas combining non threaded ISR with wake_up calls? On Fri, Jan 27, 2017 at 10:37 PM, Julia Cartwright <julia@xxxxxx> wrote: > On Fri, Jan 27, 2017 at 10:25:08PM +0000, Andy Ng wrote: >> the wake_up from a non threaded isr in RT will end up to try to get >> the spin_lock of of that wait_queue, but this kind of locking in not >> allowed in non threaded isr and therefore the use of wake_up_locked >> does not touches the spin_locks of the queue... and it seems to work > > And, have you convinced yourself that this is a safe operation to > perform without taking the lock? > > In other words, how are you preventing this interrupt from firing when a > thread is in process of manipulating the wake queue? > > Julia > > PS. There is a "simple" waitqueue implementation which may or may not > fit what you want to do. -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html