From owner-freebsd-commit Wed Nov 15 08:56:04 1995 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA22816 for freebsd-commit-outgoing; Wed, 15 Nov 1995 08:56:04 -0800 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA22792 for cvs-all-outgoing; Wed, 15 Nov 1995 08:55:57 -0800 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA22771 for cvs-sys-outgoing; Wed, 15 Nov 1995 08:55:50 -0800 Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id IAA22705 ; Wed, 15 Nov 1995 08:55:23 -0800 Received: from critter.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0tFl7J-0003wiC; Wed, 15 Nov 95 08:55 PST Received: from localhost (localhost [127.0.0.1]) by critter.tfs.com (8.6.11/8.6.9) with SMTP id RAA03128; Wed, 15 Nov 1995 17:55:22 +0100 X-Authentication-Warning: localhost.tfs.com: Host localhost didn't use HELO protocol To: "Garrett A. Wollman" cc: Peter Wemm , Bruce Evans , CVS-commiters@freefall.freebsd.org, cvs-sys@freefall.freebsd.org Subject: Re: cvs commit: src/sys/kern kern_sysctl.c In-reply-to: Your message of "Wed, 15 Nov 1995 11:41:59 EST." <9511151641.AA26165@halloran-eldar.lcs.mit.edu> Date: Wed, 15 Nov 1995 17:55:22 +0100 Message-ID: <3126.816454522@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-commit@FreeBSD.ORG Precedence: bulk > < said: > > > The old implementation would lock the (old,oldlen) so that it could > > do the copyout without a context-switch. > > > In all cases but kern.vnode. > > > I really hate that exception, but on the other hand I'm not sure I really > > think we should have that feature anyway. It's going to be quite an effort > > to implement atomicity on a SMP system, and I really don't think it is the > > right way to solve the problem. I can see that it's a lot easier in the > > user-land, but boy is it a mess in the kernel. > > The purpose of this is to prevent race conditions even in a > uniprocessor system. what race-conditions ? -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.