- 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.
This commit is contained in:
parent
05864a7334
commit
e1dd224437
@ -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.)
|
||||
|
Loading…
x
Reference in New Issue
Block a user