Re: need some debugging help

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 01 Sep 2003 11:07:11 +0200
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.
Received on Mon Sep 01 2003 - 00:07:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:20 UTC