In message <[EMAIL PROTECTED]>, "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
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to