tech-kern archive

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

Re: Synchronizing if_xennet_xenbus detach with event-handling



On Mon, Feb 08, 2016 at 04:34:20PM -0800, Rohan Desai wrote:
> Thinking about this more, I don't understand this explanation. Won't the
> interrupt level of the cpu still be IPL_NET while detach is sleeping?

No the spl is lowered while sleeping

> BTW,
> in my crash detach is waiting on a cv in softint_disestablish()

If softint_disestablish() can sleep that may be more problematic.
In this case event_remove_handler() should be called before
softint_disestablish().

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index