Re: [PATCH net] bridge: use _bh spinlock variant for br_fdb_update to avoid lockup

2015-06-07 Thread David Miller
From: Nikolay Aleksandrov Date: Fri, 5 Jun 2015 00:52:57 -0700 > From: Wilson Kok > > br_fdb_update() can be called in process context in the following way: > br_fdb_add() -> __br_fdb_add() -> br_fdb_update() (if NTF_USE flag is set) > so we need to use spin_lock_bh because there are softirq u

[PATCH net] bridge: use _bh spinlock variant for br_fdb_update to avoid lockup

2015-06-05 Thread Nikolay Aleksandrov
From: Wilson Kok br_fdb_update() can be called in process context in the following way: br_fdb_add() -> __br_fdb_add() -> br_fdb_update() (if NTF_USE flag is set) so we need to use spin_lock_bh because there are softirq users of the hash_lock. One easy way to reproduce this is to modify the bridg