Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2003 01:32:03 -0700
From:      David Schultz <das@FreeBSD.ORG>
To:        "Greg 'groggy' Lehey" <grog@FreeBSD.ORG>
Cc:        John Baldwin <jhb@FreeBSD.ORG>
Subject:   Re: cvs commit: src/sys/dev/vinum vinumdaemon.c
Message-ID:  <20030423083203.GA11852@HAL9000.homeunix.com>
In-Reply-To: <20030423004740.GB49579@wantadilla.lemis.com>
References:  <200304221945.h3MJjQSg024837@repoman.freebsd.org> <20030423004740.GB49579@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030423083203.GA11852>