From owner-freebsd-hackers Mon Feb 22 6:29:23 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from gatekeeper.tsc.tdk.com (gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (Postfix) with ESMTP id B38281102F for ; Mon, 22 Feb 1999 06:29:21 -0800 (PST) (envelope-from gdonl@tsc.tdk.com) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.8/8.8.8) with ESMTP id GAA16373; Mon, 22 Feb 1999 06:28:59 -0800 (PST) (envelope-from gdonl@tsc.tdk.com) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id GAA10579; Mon, 22 Feb 1999 06:28:58 -0800 (PST) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id GAA28942; Mon, 22 Feb 1999 06:28:57 -0800 (PST) From: Don Lewis Message-Id: <199902221428.GAA28942@salsa.gv.tsc.tdk.com> Date: Mon, 22 Feb 1999 06:28:56 -0800 In-Reply-To: Terry Lambert "Re: Panic in FFS/4.0 as of yesterday" (Feb 20, 10:52pm) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: Terry Lambert , dfr@nlsystems.com (Doug Rabson) Subject: Re: Panic in FFS/4.0 as of yesterday Cc: dillon@apollo.backplane.com, freebsd-hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Feb 20, 10:52pm, Terry Lambert wrote: } Subject: Re: Panic in FFS/4.0 as of yesterday } > If it works, then changing lookup to not require locks on both vnodes at } > the same time would be a good thing. One of the reasons that NFS doesn't } > have proper node locks is that a dead NFS server can lead to a hung } > machine though a lock cascade from the NFS mount point. I suggested doing something like this, but only at mount points, which should be sufficient to fix the NFS problem. The only race conditions that would open would be for things you probably don't want to do at mountpoints anyway. } The correct way to do this, IMO, is a back-off/retry, which would } unlock the lock and queue the operation for retry, which would } reacquire the lock. Wouldn't you have to relock the parent before unlocking the lock (nasty because it reverses the locking order and might cause a deadlock). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message