Wen Yang <[email protected]> writes: > How about a context-sensitive approach, eg: > > NMI/hardirq (interrupts masked, scheduler cannot run): > Keep LD_WAIT_FREE. The false positive cannot arise in this path, > and the original constraint against raw spinlocks is preserved where > it is meaningful. > > task/softirq/PREEMPT_RT irq thread (preemptible): > Raise to LD_WAIT_SPIN. Raw spinlocks become permitted — as Gabriele > note, this is a necessary consequence of any fix in this path.
I don't get the point. Unless the lock's type is also context-sensitive, the reactors still cannot use raw spin locks. Nam
