Re: [PATCH 1/3] rv/reactors: fix lockdep "Invalid wait context" in rv_react()

From: Nam Cao

Date: Thu Jul 09 2026 - 14:08:20 EST


Wen Yang <wen.yang@xxxxxxxxx> 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