cvs commit: src/sys/dev/vinum vinumdaemon.c
David Schultz
das at FreeBSD.ORG
Wed Apr 23 01:32:08 PDT 2003
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.
More information about the cvs-src
mailing list