1
0

[NET]: Conditionally use bh_lock_sock_nested in sk_receive_skb

Spotted by Ian McDonald, tentatively fixed by Gerrit Renker:

http://www.mail-archive.com/dccp%40vger.kernel.org/msg00599.html

Rewritten not to unroll sk_receive_skb, in the common case, i.e. no lock
debugging, its optimized away.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Este cometimento está contido em:
Arnaldo Carvalho de Melo
2006-11-16 14:06:06 -02:00
cometido por David S. Miller
ascendente e523a1550e
cometimento 58a5a7b955
6 ficheiros modificados com 11 adições e 7 eliminações

Ver ficheiro

@@ -804,7 +804,7 @@ got_it:
goto free_out;
}
return sk_receive_skb(sk, skb);
return sk_receive_skb(sk, skb, 0);
}
return dn_nsp_no_socket(skb, reason);