From owner-cvs-src@FreeBSD.ORG Tue Apr 22 14:44:05 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D25E37B401; Tue, 22 Apr 2003 14:44:05 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F99443FBD; Tue, 22 Apr 2003 14:44:01 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id HAA14520; Wed, 23 Apr 2003 07:43:59 +1000 Date: Wed, 23 Apr 2003 07:43:58 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: John Baldwin In-Reply-To: <200304221945.h3MJjQSg024837@repoman.freebsd.org> Message-ID: <20030423073405.E19214@gamplex.bde.org> References: <200304221945.h3MJjQSg024837@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/vinum vinumdaemon.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 21:44:05 -0000 On Tue, 22 Apr 2003, John Baldwin wrote: > jhb 2003/04/22 12:45:26 PDT > > FreeBSD src repository > > Modified files: > sys/dev/vinum vinumdaemon.c > Log: > Keep the proc locked while we set PS_INMEM so that either of the proc lock > or sched_lock are sufficient to test this flag. > > XXX: vinum should really be using a kernel process via kthread_create() > instead of this hack. I'm not even sure PS_INMEM can be clear at this > point anyways. I think PS_INMEM is always set for curproc, since curproc couldn't run without a stack. vinumdaemon also hacks on P_SYSTEM, which should keep PS_INMEM from changing later. Bruce