diff options
author | jhb <jhb@FreeBSD.org> | 2003-04-17 22:37:48 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-04-17 22:37:48 +0000 |
commit | e1dd224437698f1eca740d7a6ba15189c97ccf2b (patch) | |
tree | 1b2be99b04fd2c960552413e922c8bbaee5a4a58 /sys/kern/vfs_aio.c | |
parent | 05864a7334b1b6753af74126f52bb7a243016c65 (diff) | |
download | FreeBSD-src-e1dd224437698f1eca740d7a6ba15189c97ccf2b.zip FreeBSD-src-e1dd224437698f1eca740d7a6ba15189c97ccf2b.tar.gz |
- kthread's don't have p_textvp set to anything, so replace code that
dealt with that possibility with a KASSERT().
- No need to set P_SYSTEM, kthread_create() does that for us.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index b9f49e1..ddfda94 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -773,10 +773,7 @@ aio_daemon(void *uproc) mycp = td->td_proc; myvm = mycp->p_vmspace; - if (mycp->p_textvp) { - vrele(mycp->p_textvp); - mycp->p_textvp = NULL; - } + KASSERT(mycp->p_textvp == NULL, ("kthread has a textvp")); /* * Allocate and ready the aio control info. There is one aiop structure @@ -815,9 +812,6 @@ aio_daemon(void *uproc) sx_xunlock(&proctree_lock); mtx_lock(&Giant); - /* Mark special process type. */ - mycp->p_flag |= P_SYSTEM; - /* * Wakeup parent process. (Parent sleeps to keep from blasting away * and creating too many daemons.) |