need some debugging help

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Sep 1 02:07:18 PDT 2003


In message <20030901064840.GA61253 at panzer.kdm.org>, "Kenneth D. Merry" writes:

>In particular, I went through some interesting permutations in
>taskqueue_kthread() to make things work right:
>
> - I tried holding Giant when calling tsleep, but it complained that I
>   didn't own Giant.

I have had a similar issue a couple of places in the giant/no-giant
shims for GEOM.  I found one convenient trick was to sleep with a
timeout instead.  It's not beautiful but it works.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list