From owner-cvs-src@FreeBSD.ORG Wed Apr 23 01:32:07 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 AD9D037B408; Wed, 23 Apr 2003 01:32:07 -0700 (PDT) Received: from HAL9000.homeunix.com (12-233-57-131.client.attbi.com [12.233.57.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1426343FDF; Wed, 23 Apr 2003 01:32:05 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.5) with ESMTP id h3N8W3jC011899; Wed, 23 Apr 2003 01:32:03 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.5/Submit) id h3N8W3Qq011898; Wed, 23 Apr 2003 01:32:03 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Wed, 23 Apr 2003 01:32:03 -0700 From: David Schultz To: "Greg 'groggy' Lehey" Message-ID: <20030423083203.GA11852@HAL9000.homeunix.com> Mail-Followup-To: Greg 'groggy' Lehey , John Baldwin , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200304221945.h3MJjQSg024837@repoman.freebsd.org> <20030423004740.GB49579@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030423004740.GB49579@wantadilla.lemis.com> cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG cc: John Baldwin 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: Wed, 23 Apr 2003 08:32:08 -0000 On Wed, Apr 23, 2003, Greg 'groggy' Lehey wrote: > On Tuesday, 22 April 2003 at 12:45:26 -0700, 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. > > Is there a cookbook for this kind of conversion? The AIO implementation was converted to use kthread_create() some time ago, and it is a very simple example of how to do the conversion.