bnx2x: disable loacal BH when scheduling FCOE napi
authorVladislav Zolotarov <vladz@broadcom.com>
Tue, 19 Jul 2011 01:43:25 +0000 (01:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jul 2011 16:57:49 +0000 (09:57 -0700)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_main.c

index a86517cffd4ac8bee9af53bba1cb46cd9bfb9c6b..b8f8793912c8160c39e00cb4ab00aebbd9eff9c0 100644 (file)
@@ -4520,8 +4520,15 @@ static void bnx2x_sp_task(struct work_struct *work)
                struct bnx2x_fastpath *fp = bnx2x_fcoe_fp(bp);
 
                if ((!NO_FCOE(bp)) &&
-                       (bnx2x_has_rx_work(fp) || bnx2x_has_tx_work(fp)))
+                       (bnx2x_has_rx_work(fp) || bnx2x_has_tx_work(fp))) {
+                       /*
+                        * Prevent local bottom-halves from running as
+                        * we are going to change the local NAPI list.
+                        */
+                       local_bh_disable();
                        napi_schedule(&bnx2x_fcoe(bp, napi));
+                       local_bh_enable();
+               }
 #endif
                /* Handle EQ completions */
                bnx2x_eq_int(bp);