Re: Bogus usage of tsleep(9) in USB.

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Fri, 20 Aug 2004 15:50:33 +0200
Pawel Jakub Dawidek <pjd_at_FreeBSD.org> writes:
> There are many calls to tsleep(9) with no timeout in our USB code.
> As you all know, it is not permitted and we have KASSERT() for this:
>
>         KASSERT(timo != 0 || mtx_owned(&Giant) || mtx != NULL,
>             ("sleeping without a mutex"));

This panic message only applies to one of the three conditions the
KASSERT tests.  It should probably be split into three separate
KASSERTs with three different panic messages.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Fri Aug 20 2004 - 11:50:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:07 UTC