[openib-general] [PATCH] mad: Add port number to MAD thread names
Hal Rosenstock
halr at voltaire.com
Thu Nov 18 09:02:03 PST 2004
mad: Add port number to MAD thread names
Index: mad.c
===================================================================
--- mad.c (revision 1259)
+++ mad.c (working copy)
@@ -1843,6 +1843,7 @@
int ret, cq_size;
struct ib_mad_port_private *port_priv;
unsigned long flags;
+ char name[8];
/* First, check if port already open at MAD layer */
port_priv = ib_get_mad_port(device, port_num);
@@ -1898,7 +1899,8 @@
if (ret)
goto error7;
- port_priv->wq = create_workqueue("ib_mad");
+ sprintf(name, "ib_mad%d", port_num);
+ port_priv->wq = create_workqueue(name);
if (!port_priv->wq) {
ret = -ENOMEM;
goto error8;
More information about the general
mailing list