Re: [PATCH net v2] bnx2: fix locking when netconsole is used

2016-10-18 Thread David Miller
From: Ivan Vecera Date: Tue, 18 Oct 2016 08:16:03 +0200 > Functions bnx2_reg_rd_ind(), bnx2_reg_wr_ind() and bnx2_ctx_wr() > can be called with IRQs disabled when netconsole is enabled. So they > should use spin_{,un}lock_irq{save,restore} instead of _bh variants. > > Example call flow: > bnx2_p

[PATCH net v2] bnx2: fix locking when netconsole is used

2016-10-17 Thread Ivan Vecera
Functions bnx2_reg_rd_ind(), bnx2_reg_wr_ind() and bnx2_ctx_wr() can be called with IRQs disabled when netconsole is enabled. So they should use spin_{,un}lock_irq{save,restore} instead of _bh variants. Example call flow: bnx2_poll() ->bnx2_poll_link() ->bnx2_phy_int() ->bnx2_set_remot