From owner-freebsd-alpha Wed Jun 6 15:45:30 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id 3AA8237B405; Wed, 6 Jun 2001 15:45:27 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f56MjQv18126; Wed, 6 Jun 2001 18:45:26 -0400 (EDT) Date: Wed, 6 Jun 2001 18:45:24 -0400 From: Alfred Perlstein To: John Baldwin Cc: Andrew Gallatin , Freebsd-alpha@FreeBSD.org, obrien@FreeBSD.org Subject: Re: -current kernel still considered dangerous Message-ID: <20010606184523.P1832@superconductor.rush.net> References: <15134.14841.825808.882824@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: ; from jhb@FreeBSD.org on Wed, Jun 06, 2001 at 09:57:09AM -0700 X-all-your-base: are belong to us. Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * John Baldwin [010606 12:58] wrote: > > > Is there any documentation what the locking requirements of various > > vm functions are now? I tested osf1 after my initial set of commits to catch > > alpha up to x86, but an assert must have been added since then. > > Not really, and it is in a state of flux right now. On my todo list is to > change the vm_map's to be locked by a sx lock, and once that is done I will > change those mtx_assert's to simply require the sx lock rather than the vm_mtx > lock. However, I'm still not sure how vm_page's will be locked. vm_object's > will probably have their own mutex or sx lock though. Linux uses a single lock to protect them, most of the splvm()'s that you removed were placeholders for the vm page queue's mutex. -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message