diff options
author | Michael Chan <mchan@broadcom.com> | 2010-04-27 11:28:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-27 14:38:16 -0700 |
commit | 212f9934afccf9c97399216b694a7f452526d6da (patch) | |
tree | b759229660e9fe5848bd04f9b15816f15e8c1972 /drivers/rtc/rtc-x1205.c | |
parent | c441b8d2cb2194b05550a558d6d95d8944e56a84 (diff) |
bnx2: Prevent "scheduling while atomic" warning with cnic, bonding and vlan.
The bonding driver calls ndo_vlan_rx_register() while holding bond->lock.
The bnx2 driver calls bnx2_netif_stop() to stop the rx handling while
changing the vlgrp. The call also stops the cnic driver which sleeps
while the bond->lock is held and cause the warning.
This code path only needs to stop the NAPI rx handling while we are
changing the vlgrp. Since no reset is going to occur, there is no need
to stop cnic in this case. By adding a parameter to bnx2_netif_stop()
to skip stopping cnic, we can avoid the warning.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/rtc/rtc-x1205.c')
0 files changed, 0 insertions, 0 deletions