Author: jhb
Date: Thu Jan 21 01:28:31 2016
New Revision: 294481
URL: https://svnweb.freebsd.org/changeset/base/294481

Log:
  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

Modified:
  head/sys/kern/vfs_aio.c

Modified: head/sys/kern/vfs_aio.c
==============================================================================
--- head/sys/kern/vfs_aio.c     Thu Jan 21 01:25:28 2016        (r294480)
+++ head/sys/kern/vfs_aio.c     Thu Jan 21 01:28:31 2016        (r294481)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to