mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
[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>
This commit is contained in:
parent
e523a1550e
commit
58a5a7b955
6 changed files with 11 additions and 7 deletions
|
|
@ -954,7 +954,8 @@ static inline void sock_put(struct sock *sk)
|
|||
sk_free(sk);
|
||||
}
|
||||
|
||||
extern int sk_receive_skb(struct sock *sk, struct sk_buff *skb);
|
||||
extern int sk_receive_skb(struct sock *sk, struct sk_buff *skb,
|
||||
const int nested);
|
||||
|
||||
/* Detach socket from process context.
|
||||
* Announce socket dead, detach it from wait queue and inode.
|
||||
|
|
|
|||
Loading…
Reference in a new issue