Thread (10 messages) flat view 10 messages, 4 authors, 2016-05-19

Re: [PATCH net-next 1/4] scsi_tcp: block BH in TCP callbacks

From: Eric Dumazet <hidden>
Date: 2016-05-18 17:29:28

On Wed, 2016-05-18 at 12:21 -0500, Mike Christie wrote:
Can I just confirm that nested bh lock calls like:

spin_lock_bh(lock1);
spin_lock_bh(lock2);

do something

spin_unlock_bh(lock2);
spin_unlock_bh(lock1);

is ok? It seems smatch sometimes warns about this.
It is ok.

More generally

local_bh_disable();
local_bh_disable();

..

local_bh_enable();
local_bh_enable();

is ok, we already have a lot of them.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help