Re: [PATCH net-next] kcm: Fix unnecessary psock unreservation.

From: patchwork-bot+netdevbpf
Date: Sat Jun 17 2023 - 03:20:30 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 15 Jun 2023 12:32:02 +0100 you wrote:
> kcm_write_msgs() calls unreserve_psock() to release its hold on the
> underlying TCP socket if it has run out of things to transmit, but if we
> have nothing in the write queue on entry (e.g. because someone did a
> zero-length sendmsg), we don't actually go into the transmission loop and
> as a consequence don't call reserve_psock().
>
> Fix this by skipping the call to unreserve_psock() if we didn't reserve a
> psock.
>
> [...]

Here is the summary with links:
- [net-next] kcm: Fix unnecessary psock unreservation.
https://git.kernel.org/netdev/net-next/c/9f8d0dc0ec4a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html