Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2008 20:24:00 GMT
From:      Steve Wise <swise@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 137344 for review
Message-ID:  <200803102024.m2AKO07h039141@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=137344

Change 137344 by swise@swise:vic10:iwarp on 2008/03/10 20:23:17

	Get rid of fast taskqueues.

Affected files ...

.. //depot/projects/iwarp/sys/contrib/rdma/rdma_addr.c#8 edit
.. //depot/projects/iwarp/sys/contrib/rdma/rdma_cma.c#13 edit
.. //depot/projects/iwarp/sys/contrib/rdma/rdma_iwcm.c#11 edit

Differences ...

==== //depot/projects/iwarp/sys/contrib/rdma/rdma_addr.c#8 (text+ko) ====

@@ -89,7 +89,7 @@
 
 static void addr_timeout(void *arg)
 {
-	taskqueue_enqueue_fast(addr_taskq, &addr_task);
+	taskqueue_enqueue(addr_taskq, &addr_task);
 }
 
 void rdma_addr_register_client(struct rdma_addr_client *client)
@@ -346,7 +346,7 @@
 	struct sockaddr *sa)
 {
 		callout_stop(&addr_ch);
-		taskqueue_enqueue_fast(addr_taskq, &addr_task);
+		taskqueue_enqueue(addr_taskq, &addr_task);
 }
 
 static int addr_init(void)
@@ -354,7 +354,7 @@
 	TAILQ_INIT(&req_list);
 	mtx_init(&lock, "rdma_addr req_list lock", NULL, MTX_DEF);
 
-	addr_taskq = taskqueue_create_fast("rdma_addr_taskq", M_NOWAIT,
+	addr_taskq = taskqueue_create("rdma_addr_taskq", M_NOWAIT,
 		taskqueue_thread_enqueue, &addr_taskq);
         if (addr_taskq == NULL) {
                 printf("failed to allocate rdma_addr taskqueue\n");

==== //depot/projects/iwarp/sys/contrib/rdma/rdma_cma.c#13 (text+ko) ====

@@ -1566,7 +1566,7 @@
 		work->event.status = status;
 	}
 
-	taskqueue_enqueue_fast(cma_wq, &work->task);
+	taskqueue_enqueue(cma_wq, &work->task);
 }
 
 static int cma_query_ib_route(struct rdma_id_private *id_priv, int timeout_ms,
@@ -1694,7 +1694,7 @@
 	work->old_state = CMA_ROUTE_QUERY;
 	work->new_state = CMA_ROUTE_RESOLVED;
 	work->event.event = RDMA_CM_EVENT_ROUTE_RESOLVED;
-	taskqueue_enqueue_fast(cma_wq, &work->task);
+	taskqueue_enqueue(cma_wq, &work->task);
 	return 0;
 }
 
@@ -1858,7 +1858,7 @@
 	work->old_state = CMA_ADDR_QUERY;
 	work->new_state = CMA_ADDR_RESOLVED;
 	work->event.event = RDMA_CM_EVENT_ADDR_RESOLVED;
-	taskqueue_enqueue_fast(cma_wq, &work->task);
+	taskqueue_enqueue(cma_wq, &work->task);
 	return 0;
 err:
 	free(work, M_DEVBUF);
@@ -2941,7 +2941,7 @@
 	next_port = ((unsigned int) next_port %
 		    (ipport_lastauto - ipport_firstauto)) +
 		    ipport_firstauto;
-	cma_wq = taskqueue_create_fast("rdma_cm", M_NOWAIT, taskqueue_thread_enqueue,
+	cma_wq = taskqueue_create("rdma_cm", M_NOWAIT, taskqueue_thread_enqueue,
 		&cma_wq);
 
 	if (!cma_wq)

==== //depot/projects/iwarp/sys/contrib/rdma/rdma_iwcm.c#11 (text+ko) ====

@@ -960,7 +960,7 @@
 	atomic_inc(&cm_id_priv->refcount);
 	if (TAILQ_EMPTY(&cm_id_priv->work_list)) {
 		TAILQ_INSERT_TAIL(&cm_id_priv->work_list, work, list);
-		taskqueue_enqueue_fast(iwcm_wq, &work->task);
+		taskqueue_enqueue(iwcm_wq, &work->task);
 	} else
 		TAILQ_INSERT_TAIL(&cm_id_priv->work_list, work, list);
 out:
@@ -1045,7 +1045,7 @@
 
 static int __init iw_cm_init(void)
 {
-	iwcm_wq = taskqueue_create_fast("iw_cm_wq", M_NOWAIT, taskqueue_thread_enqueue, &iwcm_wq);
+	iwcm_wq = taskqueue_create("iw_cm_wq", M_NOWAIT, taskqueue_thread_enqueue, &iwcm_wq);
 	if (!iwcm_wq)
 		return (ENOMEM);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803102024.m2AKO07h039141>