mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
- 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
213b19e9fb
commit
cd4ed3b5b0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113638
@ -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…
Reference in New Issue
Block a user