From owner-cvs-all Wed Aug 25 23:50:12 1999 Delivered-To: cvs-all@freebsd.org Received: from ren.detir.qld.gov.au (ns.detir.qld.gov.au [203.46.81.66]) by hub.freebsd.org (Postfix) with ESMTP id 8843515234; Wed, 25 Aug 1999 23:49:48 -0700 (PDT) (envelope-from syssgm@detir.qld.gov.au) Received: by ren.detir.qld.gov.au; id QAA07884; Thu, 26 Aug 1999 16:47:29 +1000 (EST) Received: from ogre.detir.qld.gov.au(167.123.8.3) by ren.detir.qld.gov.au via smap (3.2) id xma007826; Thu, 26 Aug 99 16:47:10 +1000 Received: from atlas.detir.qld.gov.au (atlas.detir.qld.gov.au [167.123.8.9]) by ogre.detir.qld.gov.au (8.8.8/8.8.7) with ESMTP id QAA18197; Thu, 26 Aug 1999 16:47:09 +1000 (EST) Received: from nymph.detir.qld.gov.au (nymph.detir.qld.gov.au [167.123.10.10]) by atlas.detir.qld.gov.au (8.8.5/8.8.5) with ESMTP id QAA22995; Thu, 26 Aug 1999 16:47:09 +1000 (EST) Received: from nymph.detir.qld.gov.au (localhost.detir.qld.gov.au [127.0.0.1]) by nymph.detir.qld.gov.au (8.8.8/8.8.7) with ESMTP id QAA21406; Thu, 26 Aug 1999 16:47:08 +1000 (EST) (envelope-from syssgm@nymph.detir.qld.gov.au) Message-Id: <199908260647.QAA21406@nymph.detir.qld.gov.au> To: Alan Cox Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org, syssgm@detir.qld.gov.au Subject: Re: cvs commit: src/sys/vm vm_map.h References: <199908231808.LAA86314@freefall.freebsd.org> <199908250703.RAA14106@nymph.detir.qld.gov.au> <19990826013921.D27804@cs.rice.edu> In-Reply-To: <19990826013921.D27804@cs.rice.edu> from Alan Cox at "Thu, 26 Aug 1999 01:39:21 -0500" Date: Thu, 26 Aug 1999 16:47:07 +1000 From: Stephen McKay Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Thursday, 26th August 1999, Alan Cox wrote: >On Wed, Aug 25, 1999 at 05:03:24PM +1000, Stephen McKay wrote: >> Wouldn't it have been better to change the lock code to sleep on a field >> within the lock structure, rather than the first byte? > >Yes and no. :-) Doing as you suggest is a great idea because it could >reduce the chance of this same problem happening elsewhere in the kernel. >(So, I would welcome a patch that implements it.) > >On the other hand, this patch fixes the problem at hand and has a near-zero >chance of causing any new problems. I don't feel the same way about any >changes to lockmgr, and since 3.x-STABLE is subject to the same problem, >I wanted to try the simplest patch, that I wouldn't worry about MFC'ing, >first. Cogently argued. I agree. The change I suggest involves changing 1 tsleep and 4 wakeup calls in kern_lock.c. I'll try it out this weekend. But anyone else with the time right now can beat me to it, if they like. Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message