Remove unused variables for socket AIO.
In r55943, a per-process queue of pending socket AIO requests (requests waiting for the socket to become ready) was added so that they could be cancelled during process rundown. In r154765, the rundown code was changed to handle jobs in this state (JOBST_JOBQSOCK) directly removing the need for the extra queue. However, the per-process queue head and global lock were never removed. Reviewed by: kib Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4997
This commit is contained in:
parent
0b0166a192
commit
e4c5597b37
@ -293,9 +293,6 @@ struct kaioinfo {
|
||||
TAILQ_HEAD(,aioliojob) kaio_liojoblist; /* (a) list of lio jobs */
|
||||
TAILQ_HEAD(,aiocblist) kaio_jobqueue; /* (a) job queue for process */
|
||||
TAILQ_HEAD(,aiocblist) kaio_bufqueue; /* (a) buffer job queue for process */
|
||||
TAILQ_HEAD(,aiocblist) kaio_sockqueue; /* (a) queue for aios waiting on sockets,
|
||||
* NOT USED YET.
|
||||
*/
|
||||
TAILQ_HEAD(,aiocblist) kaio_syncqueue; /* (a) queue for aio_fsync */
|
||||
struct task kaio_task; /* (*) task to kick aio threads */
|
||||
};
|
||||
@ -325,7 +322,6 @@ struct aiocb_ops {
|
||||
static TAILQ_HEAD(,aiothreadlist) aio_freeproc; /* (c) Idle daemons */
|
||||
static struct sema aio_newproc_sem;
|
||||
static struct mtx aio_job_mtx;
|
||||
static struct mtx aio_sock_mtx;
|
||||
static TAILQ_HEAD(,aiocblist) aio_jobs; /* (c) Async job list */
|
||||
static struct unrhdr *aiod_unr;
|
||||
|
||||
@ -483,7 +479,6 @@ aio_onceonly(void)
|
||||
TAILQ_INIT(&aio_freeproc);
|
||||
sema_init(&aio_newproc_sem, 0, "aio_new_proc");
|
||||
mtx_init(&aio_job_mtx, "aio_job", NULL, MTX_DEF);
|
||||
mtx_init(&aio_sock_mtx, "aio_sock", NULL, MTX_DEF);
|
||||
TAILQ_INIT(&aio_jobs);
|
||||
aiod_unr = new_unrhdr(1, INT_MAX, NULL);
|
||||
kaio_zone = uma_zcreate("AIO", sizeof(struct kaioinfo), NULL, NULL,
|
||||
@ -556,7 +551,6 @@ aio_unload(void)
|
||||
EVENTHANDLER_DEREGISTER(process_exit, exit_tag);
|
||||
EVENTHANDLER_DEREGISTER(process_exec, exec_tag);
|
||||
mtx_destroy(&aio_job_mtx);
|
||||
mtx_destroy(&aio_sock_mtx);
|
||||
sema_destroy(&aio_newproc_sem);
|
||||
p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, -1);
|
||||
p31b_setcfg(CTL_P1003_1B_AIO_MAX, -1);
|
||||
@ -587,7 +581,6 @@ aio_init_aioinfo(struct proc *p)
|
||||
TAILQ_INIT(&ki->kaio_jobqueue);
|
||||
TAILQ_INIT(&ki->kaio_bufqueue);
|
||||
TAILQ_INIT(&ki->kaio_liojoblist);
|
||||
TAILQ_INIT(&ki->kaio_sockqueue);
|
||||
TAILQ_INIT(&ki->kaio_syncqueue);
|
||||
TASK_INIT(&ki->kaio_task, 0, aio_kick_helper, p);
|
||||
PROC_LOCK(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user