]> Git Repo - linux.git/commitdiff
tcp: add a missing sk_defer_free_flush() in tcp_splice_read()
authorEric Dumazet <[email protected]>
Thu, 20 Jan 2022 12:45:30 +0000 (04:45 -0800)
committerJakub Kicinski <[email protected]>
Fri, 21 Jan 2022 04:17:50 +0000 (20:17 -0800)
Without it, splice users can hit the warning
added in commit 79074a72d335 ("net: Flush deferred skb free on socket destroy")

Fixes: f35f821935d8 ("tcp: defer skb freeing after socket lock is released")
Fixes: 79074a72d335 ("net: Flush deferred skb free on socket destroy")
Suggested-by: Jakub Kicinski <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Gal Pressman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
net/ipv4/tcp.c

index 3b75836db19b07b0f178ef4457bda0ec641fd40d..78e81465f5f3632f54093495d2f2a064e60c7237 100644 (file)
@@ -842,6 +842,7 @@ ssize_t tcp_splice_read(struct socket *sock, loff_t *ppos,
        }
 
        release_sock(sk);
+       sk_defer_free_flush(sk);
 
        if (spliced)
                return spliced;
This page took 0.065433 seconds and 4 git commands to generate.