Re: Calling tsleep(9) with interrupts disabled

2012-05-15 Thread John Baldwin
On Tuesday, May 08, 2012 12:07:12 pm Ian Lepore wrote: > I just realized that I've accidentally coded a sequence similar to this > in a driver: > >s = intr_disable(); >// do stuff here >tsleep(sc, 0, "twird", hz / 4); >// more stuff >intr_restore(s); > > Much to my surpise thi

Re: Calling tsleep(9) with interrupts disabled

2012-05-09 Thread Adrian Chadd
.. re-run with witness? :) Adrian ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Calling tsleep(9) with interrupts disabled

2012-05-08 Thread Ian Lepore
I just realized that I've accidentally coded a sequence similar to this in a driver: s = intr_disable(); // do stuff here tsleep(sc, 0, "twird", hz / 4); // more stuff intr_restore(s); Much to my surpise this works, including waking up due to wakeup(sc) being called from an interru