When reading large chunks of data, incoming packets might
be added to the backlog from BH.
tcp recvmsg() detects the backlog queue is not empty, and uses
a release_sock()/lock_sock() pair to process this backlog.
We now have __sk_flush_backlog() to perform this
a bit faster.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
 
                if (copied >= target) {
                        /* Do not sleep, just process backlog. */
-                       release_sock(sk);
-                       lock_sock(sk);
+                       __sk_flush_backlog(sk);
                } else {
                        sk_wait_data(sk, &timeo, last);
                }