mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
svc: Remove unnecessary call to svc_sock_enqueue
The svc_tcp_accept function calls svc_sock_enqueue after setting the SK_CONN bit. This doesn't actually do anything because the SK_BUSY bit is still set. The call is unnecessary anyway because the generic code in svc_recv calls svc_sock_received after calling the accept function. Signed-off-by: Tom Tucker <[email protected]> Acked-by: Neil Brown <[email protected]> Reviewed-by: Chuck Lever <[email protected]> Reviewed-by: Greg Banks <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
parent
38a417cc99
commit
44a6995b32
1 changed files with 0 additions and 1 deletions
|
|
@ -1064,7 +1064,6 @@ static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt)
|
|||
}
|
||||
|
||||
set_bit(SK_CONN, &svsk->sk_flags);
|
||||
svc_sock_enqueue(svsk);
|
||||
|
||||
err = kernel_getpeername(newsock, sin, &slen);
|
||||
if (err < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue