diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-07-01 13:21:46 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-07-01 13:21:46 +0000 |
commit | 9c8b8baa38c9a8135d7602f127cb0c735010837d (patch) | |
tree | a0f27dc00cd8320384338dd65912e6fe8f0a6ce6 /sys/kern/vfs_aio.c | |
parent | 940b9c82a056449d0ad7f7d09a7599d4861846de (diff) | |
download | src-9c8b8baa38c9a8135d7602f127cb0c735010837d.tar.gz src-9c8b8baa38c9a8135d7602f127cb0c735010837d.zip |
Slight reorganization of kernel thread/process creation. Instead of using
SYSINIT_KT() etc (which is a static, compile-time procedure), use a
NetBSD-style kthread_create() interface. kproc_start is still available
as a SYSINIT() hook. This allowed simplification of chunks of the
sysinit code in the process. This kthread_create() is our old kproc_start
internals, with the SYSINIT_KT fork hooks grafted in and tweaked to work
the same as the NetBSD one.
One thing I'd like to do shortly is get rid of nfsiod as a user initiated
process. It makes sense for the nfs client code to create them on the
fly as needed up to a user settable limit. This means that nfsiod
doesn't need to be in /sbin and is always "available". This is a fair bit
easier to do outside of the SYSINIT_KT() framework.
Notes
Notes:
svn path=/head/; revision=48391
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index f1bac7f227a2..4c2132da6fea 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -13,7 +13,7 @@ * bad that happens because of using this software isn't the responsibility * of the author. This software is distributed AS-IS. * - * $Id: vfs_aio.c,v 1.52 1999/06/26 02:46:05 mckusick Exp $ + * $Id: vfs_aio.c,v 1.53 1999/06/30 15:33:36 peter Exp $ */ /* @@ -236,7 +236,7 @@ static int aio_aqueue(struct proc *p, struct aiocb *job, int type) ; static void aio_physwakeup(struct buf *bp); static int aio_fphysio(struct proc *p, struct aiocblist *aiocbe, int type); static int aio_qphysio(struct proc *p, struct aiocblist *iocb); -static void aio_daemon(const void *uproc); +static void aio_daemon(void *uproc); SYSINIT(aio, SI_SUB_VFS, SI_ORDER_ANY, aio_onceonly, NULL); @@ -598,7 +598,7 @@ aio_process(struct aiocblist *aiocbe) * but the setup (and address space mgmt) is done in this routine. */ static void -aio_daemon(const void *uproc) +aio_daemon(void *uproc) { int s; struct aioproclist *aiop; |