[openib-general] [PATCH] ib_mad.c: In ib_mad_completion_handler, eliminate static WC

Hal Rosenstock halr at voltaire.com
Fri Sep 10 15:46:15 PDT 2004


ib_mad.c: In ib_mad_completion_handler, eliminate static WC

Index: ib_mad.c
===================================================================
--- ib_mad.c    (revision 773)
+++ ib_mad.c    (working copy)
@@ -663,12 +663,7 @@
  */
 static void ib_mad_completion_handler(struct ib_mad_port_private *priv)
 {
-
-       /*
-        * For stack overflow safety reason, WC is static here.
-        * This callback may not be called more than once at the same
time.
-        */
-       static struct ib_wc wc;
+       struct ib_wc wc;
        int err_status = 0;
 
        while (!ib_poll_cq(priv->cq, 1, &wc)) {





More information about the general mailing list