mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
tcp: add a missing sk_defer_free_flush() in tcp_splice_read()
Without it, splice users can hit the warning added in commit79074a72d3
("net: Flush deferred skb free on socket destroy") Fixes:f35f821935
("tcp: defer skb freeing after socket lock is released") Fixes:79074a72d3
("net: Flush deferred skb free on socket destroy") Suggested-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Gal Pressman <gal@nvidia.com> Link: https://lore.kernel.org/r/20220120124530.925607-1-eric.dumazet@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
48cec899e3
commit
ebdc1a0309
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user