[openib-general] [RFC] [PATCH] mad: Change mad thread model to be 1 thread/port rather than 1 thread/port/CPU

Hal Rosenstock halr at voltaire.com
Fri Nov 19 12:18:45 PST 2004


Change mad thread model to be 1 thread/port rather than 1 thread/port/CPU
(Note that I have not applied this but am requesting comments).

Index: mad.c
===================================================================
--- mad.c	(revision 1269)
+++ mad.c	(working copy)
@@ -1900,7 +1900,7 @@
 		goto error7;
 
 	snprintf(name, sizeof name, "ib_mad%d", port_num);
-	port_priv->wq = create_workqueue(name);
+	port_priv->wq = create_singlethread_workqueue(name);
 	if (!port_priv->wq) {
 		ret = -ENOMEM;
 		goto error8;






More information about the general mailing list