]> git.itanic.dy.fi Git - linux-stable/commit
bnx2x: prevent WARN during driver unload
authorYuval Mintz <yuvalmin@broadcom.com>
Tue, 7 Jan 2014 10:07:41 +0000 (12:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jan 2014 02:46:06 +0000 (21:46 -0500)
commit9a2620c877454bb4b5c19f73d4d1d7b375da3632
treea7c905f03ae7947d017e3362ea3ff83db822d8ef
parenta04c0e2c0d4f284503fc1249bb4d2d7064c0bd0c
bnx2x: prevent WARN during driver unload

Starting with commit 80c33dd "net: add might_sleep() call to napi_disable"
bnx2x fails the might_sleep tests causing a stack trace to appear whenever
the driver is unloaded, as local_bh_disable() is being called before
napi_disable().

This changes the locking schematics related to CONFIG_NET_RX_BUSY_POLL,
preventing the need for calling local_bh_disable() and thus eliminating
the issue.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c