diff options
author | jhb <jhb@FreeBSD.org> | 2016-01-14 20:51:48 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-01-14 20:51:48 +0000 |
commit | 61577b76c5f08333b11cbc707a987cf14354519d (patch) | |
tree | 3e4b1f9492168f9cca55ea4c9b1a5f174163ebad /sys/kern/vfs_aio.c | |
parent | 7d629663f2da1b787bbdd5360fb2d6006277207e (diff) | |
download | FreeBSD-src-61577b76c5f08333b11cbc707a987cf14354519d.zip FreeBSD-src-61577b76c5f08333b11cbc707a987cf14354519d.tar.gz |
Rename aiod_bio taskqueue to aiod_kick.
This taskqueue is not used to handle bio requests. It is only used to
run aio_kick_nowait() to spin up new aio daemon processes.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D4904
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 122dff7..19db3ba 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -392,7 +392,7 @@ static struct filterops lio_filtops = { static eventhandler_tag exit_tag, exec_tag; -TASKQUEUE_DEFINE_THREAD(aiod_bio); +TASKQUEUE_DEFINE_THREAD(aiod_kick); /* * Main operations function for use as a kernel module. @@ -555,7 +555,7 @@ aio_unload(void) return error; async_io_version = 0; aio_swake = NULL; - taskqueue_free(taskqueue_aiod_bio); + taskqueue_free(taskqueue_aiod_kick); delete_unrhdr(aiod_unr); uma_zdestroy(kaio_zone); uma_zdestroy(aiop_zone); @@ -802,7 +802,7 @@ restart: } } AIO_UNLOCK(ki); - taskqueue_drain(taskqueue_aiod_bio, &ki->kaio_task); + taskqueue_drain(taskqueue_aiod_kick, &ki->kaio_task); mtx_destroy(&ki->kaio_mtx); uma_zfree(kaio_zone, ki); p->p_aioinfo = NULL; @@ -1861,7 +1861,7 @@ aio_kick_nowait(struct proc *userp) } else if (((num_aio_resv_start + num_aio_procs) < max_aio_procs) && ((ki->kaio_active_count + num_aio_resv_start) < ki->kaio_maxactive_count)) { - taskqueue_enqueue(taskqueue_aiod_bio, &ki->kaio_task); + taskqueue_enqueue(taskqueue_aiod_kick, &ki->kaio_task); } } |