Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_aio.c
Show First 20 Lines • Show All 1,153 Lines • ▼ Show 20 Lines | aio_daemon(void *_id) | ||||
num_aio_procs--; | num_aio_procs--; | ||||
mtx_unlock(&aio_job_mtx); | mtx_unlock(&aio_job_mtx); | ||||
uma_zfree(aiop_zone, aiop); | uma_zfree(aiop_zone, aiop); | ||||
free_unr(aiod_unr, id); | free_unr(aiod_unr, id); | ||||
vmspace_free(myvm); | vmspace_free(myvm); | ||||
KASSERT(p->p_vmspace == myvm, | KASSERT(p->p_vmspace == myvm, | ||||
("AIOD: bad vmspace for exiting daemon")); | ("AIOD: bad vmspace for exiting daemon")); | ||||
KASSERT(myvm->vm_refcnt > 1, | KASSERT(refcount_load(&myvm->vm_refcnt) > 1, | ||||
("AIOD: bad vm refcnt for exiting daemon: %d", myvm->vm_refcnt)); | ("AIOD: bad vm refcnt for exiting daemon: %d", | ||||
refcount_load(&myvm->vm_refcnt))); | |||||
kproc_exit(0); | kproc_exit(0); | ||||
} | } | ||||
/* | /* | ||||
* Create a new AIO daemon. This is mostly a kernel-thread fork routine. The | * Create a new AIO daemon. This is mostly a kernel-thread fork routine. The | ||||
* AIO daemon modifies its environment itself. | * AIO daemon modifies its environment itself. | ||||
*/ | */ | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 1,815 Lines • Show Last 20 Lines |