Re: [PATCH net v10 01/14] rxrpc: Fix lack of short-send handling in rxrpc_kernel_send_data()
From: Paolo Abeni
Date: Tue Sep 15 2026 - 09:56:28 EST
On 9/14/26 5:13 PM, David Howells wrote:
> @@ -816,15 +814,29 @@ int rxrpc_kernel_send_data(struct socket *sock, struct rxrpc_call *call,
> ASSERTCMP(msg->msg_name, ==, NULL);
> ASSERTCMP(msg->msg_control, ==, NULL);
>
> - mutex_lock(&call->user_mutex);
> + for (;;) {
> + mutex_lock(&call->user_mutex);
FTR coccinelle can't digest the lock inside the loop:
https://netdev-ctrl.bots.linux.dev/build/cocci/results/823484/stderr
but AFAICS the report is a false positive, and I can't think of an easy
way to avoid it.
/P