From owner-freebsd-current@FreeBSD.ORG Sun Aug 17 04:12:05 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 0A42A37B401; Sun, 17 Aug 2003 04:12:05 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F55643F75; Sun, 17 Aug 2003 04:12:04 -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 h7HBC2lX027352; Sun, 17 Aug 2003 13:12:02 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: David Malone From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 17 Aug 2003 10:56:07 BST." <20030817095607.GA83750@walton.maths.tcd.ie> Date: Sun, 17 Aug 2003 13:12:02 +0200 Message-ID: <27351.1061118722@critter.freebsd.dk> cc: Robert Watson cc: current@freebsd.org cc: Kris Kennaway Subject: Re: LOR with filedesc structure and Giant 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: Sun, 17 Aug 2003 11:12:05 -0000 In message <20030817095607.GA83750@walton.maths.tcd.ie>, David Malone writes: >On Sat, Aug 16, 2003 at 10:18:43PM +0200, Poul-Henning Kamp wrote: >> At one point we have to say "Well, the locks we have above are solid, >> but we need to drop Giant below here" but if Witness sees a >> PICKUP_GIANT() as an acquisition of Giant, rather than as a >> resumption of Giant, this clearly does not work. > >Wouldn't the risk of deadlock be real, even if it is only a resumption >of Giant? I guess another option is to drop all the locks that are >held and reqcquire all of them in the right order... There is no risk at the point where I drop Giant (as far as I have been able to work out). Dropping all the locks would not work, because it is the "other" locks held which make dropping Giant safe. -- 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.