tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kpreempt_disable and lwp migration



On Sat, Jun 17, 2017 at 06:29:12PM +0000, coypu%sdf.org@localhost wrote:
> My personal opinion is that allowing lwp migration with preemption
> explicitly disabled is a headache for reasoning about races and
> that we should consider disallowing this.

Isn't the idea of blocking with preemption enabled bogus?

So instead of disallowing migration with preemption disabled, KASSERT
in all blocking primitives that preemption is enabled and fix the fallout
at the call sites?

Martin


Home | Main Index | Thread Index | Old Index