[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250709181434.GH721198@horms.kernel.org>
Date: Wed, 9 Jul 2025 19:14:34 +0100
From: Simon Horman <horms@...nel.org>
To: Yun Lu <luyun_611@....com>
Cc: willemdebruijn.kernel@...il.com, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 2/2] af_packet: fix soft lockup issue caused by
tpacket_snd()
On Wed, Jul 09, 2025 at 05:56:53PM +0800, Yun Lu wrote:
...
> @@ -2943,14 +2953,7 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg)
> }
> packet_increment_head(&po->tx_ring);
> len_sum += tp_len;
> - } while (likely((ph != NULL) ||
> - /* Note: packet_read_pending() might be slow if we have
> - * to call it as it's per_cpu variable, but in fast-path
> - * we already short-circuit the loop with the first
> - * condition, and luckily don't have to go that path
> - * anyway.
> - */
> - (need_wait && packet_read_pending(&po->tx_ring))));
> + } while (likely(ph != NULL))
A semicolon is needed at the end of the line above.
>
> err = len_sum;
> goto out_put;
--
pw-bot: changes-requested
Powered by blists - more mailing lists