From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 02:07:18 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9671D16A4BF for ; Mon, 1 Sep 2003 02:07:18 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CE4A43F85 for ; Mon, 1 Sep 2003 02:07:17 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h8197Bi8029646; Mon, 1 Sep 2003 11:07:12 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: "Kenneth D. Merry" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 01 Sep 2003 00:48:41 MDT." <20030901064840.GA61253@panzer.kdm.org> Date: Mon, 01 Sep 2003 11:07:11 +0200 Message-ID: <29645.1062407231@critter.freebsd.dk> cc: current@FreeBSD.org Subject: Re: need some debugging help X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 09:07:18 -0000 In message <20030901064840.GA61253@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@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.