diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-28 11:54:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-28 11:54:49 -0400 |
commit | d1a76187a5be4f89c6cb19d800cb5fb7aac735c5 (patch) | |
tree | 2fac3ffbfffc7560eeef8364b541d0d7a0057920 /net/core/sock.c | |
parent | c7e78cff6b7518212247fb20b1dc6411540dc9af (diff) | |
parent | 0173a3265b228da319ceb9c1ec6a5682fd1b2d92 (diff) |
Merge commit 'v2.6.28-rc2' into core/locking
Conflicts:
arch/um/include/asm/system.h
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 91f8bbc93526..5e2a3132a8c9 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -154,7 +154,8 @@ static const char *af_family_key_strings[AF_MAX+1] = { | |||
154 | "sk_lock-AF_PPPOX" , "sk_lock-AF_WANPIPE" , "sk_lock-AF_LLC" , | 154 | "sk_lock-AF_PPPOX" , "sk_lock-AF_WANPIPE" , "sk_lock-AF_LLC" , |
155 | "sk_lock-27" , "sk_lock-28" , "sk_lock-AF_CAN" , | 155 | "sk_lock-27" , "sk_lock-28" , "sk_lock-AF_CAN" , |
156 | "sk_lock-AF_TIPC" , "sk_lock-AF_BLUETOOTH", "sk_lock-IUCV" , | 156 | "sk_lock-AF_TIPC" , "sk_lock-AF_BLUETOOTH", "sk_lock-IUCV" , |
157 | "sk_lock-AF_RXRPC" , "sk_lock-AF_MAX" | 157 | "sk_lock-AF_RXRPC" , "sk_lock-AF_ISDN" , "sk_lock-AF_PHONET" , |
158 | "sk_lock-AF_MAX" | ||
158 | }; | 159 | }; |
159 | static const char *af_family_slock_key_strings[AF_MAX+1] = { | 160 | static const char *af_family_slock_key_strings[AF_MAX+1] = { |
160 | "slock-AF_UNSPEC", "slock-AF_UNIX" , "slock-AF_INET" , | 161 | "slock-AF_UNSPEC", "slock-AF_UNIX" , "slock-AF_INET" , |
@@ -168,7 +169,8 @@ static const char *af_family_slock_key_strings[AF_MAX+1] = { | |||
168 | "slock-AF_PPPOX" , "slock-AF_WANPIPE" , "slock-AF_LLC" , | 169 | "slock-AF_PPPOX" , "slock-AF_WANPIPE" , "slock-AF_LLC" , |
169 | "slock-27" , "slock-28" , "slock-AF_CAN" , | 170 | "slock-27" , "slock-28" , "slock-AF_CAN" , |
170 | "slock-AF_TIPC" , "slock-AF_BLUETOOTH", "slock-AF_IUCV" , | 171 | "slock-AF_TIPC" , "slock-AF_BLUETOOTH", "slock-AF_IUCV" , |
171 | "slock-AF_RXRPC" , "slock-AF_MAX" | 172 | "slock-AF_RXRPC" , "slock-AF_ISDN" , "slock-AF_PHONET" , |
173 | "slock-AF_MAX" | ||
172 | }; | 174 | }; |
173 | static const char *af_family_clock_key_strings[AF_MAX+1] = { | 175 | static const char *af_family_clock_key_strings[AF_MAX+1] = { |
174 | "clock-AF_UNSPEC", "clock-AF_UNIX" , "clock-AF_INET" , | 176 | "clock-AF_UNSPEC", "clock-AF_UNIX" , "clock-AF_INET" , |
@@ -182,7 +184,8 @@ static const char *af_family_clock_key_strings[AF_MAX+1] = { | |||
182 | "clock-AF_PPPOX" , "clock-AF_WANPIPE" , "clock-AF_LLC" , | 184 | "clock-AF_PPPOX" , "clock-AF_WANPIPE" , "clock-AF_LLC" , |
183 | "clock-27" , "clock-28" , "clock-AF_CAN" , | 185 | "clock-27" , "clock-28" , "clock-AF_CAN" , |
184 | "clock-AF_TIPC" , "clock-AF_BLUETOOTH", "clock-AF_IUCV" , | 186 | "clock-AF_TIPC" , "clock-AF_BLUETOOTH", "clock-AF_IUCV" , |
185 | "clock-AF_RXRPC" , "clock-AF_MAX" | 187 | "clock-AF_RXRPC" , "clock-AF_ISDN" , "clock-AF_PHONET" , |
188 | "clock-AF_MAX" | ||
186 | }; | 189 | }; |
187 | #endif | 190 | #endif |
188 | 191 | ||
@@ -324,7 +327,7 @@ int sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested) | |||
324 | */ | 327 | */ |
325 | mutex_acquire(&sk->sk_lock.dep_map, 0, 1, _RET_IP_); | 328 | mutex_acquire(&sk->sk_lock.dep_map, 0, 1, _RET_IP_); |
326 | 329 | ||
327 | rc = sk->sk_backlog_rcv(sk, skb); | 330 | rc = sk_backlog_rcv(sk, skb); |
328 | 331 | ||
329 | mutex_release(&sk->sk_lock.dep_map, 1, _RET_IP_); | 332 | mutex_release(&sk->sk_lock.dep_map, 1, _RET_IP_); |
330 | } else | 333 | } else |
@@ -1371,7 +1374,7 @@ static void __release_sock(struct sock *sk) | |||
1371 | struct sk_buff *next = skb->next; | 1374 | struct sk_buff *next = skb->next; |
1372 | 1375 | ||
1373 | skb->next = NULL; | 1376 | skb->next = NULL; |
1374 | sk->sk_backlog_rcv(sk, skb); | 1377 | sk_backlog_rcv(sk, skb); |
1375 | 1378 | ||
1376 | /* | 1379 | /* |
1377 | * We are in process context here with softirqs | 1380 | * We are in process context here with softirqs |