All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] tun: annotate access to queue->trans_start
@ 2022-04-12 13:58 Antoine Tenart
  2022-04-13 21:05 ` Eric Dumazet
  2022-04-14  6:50 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Antoine Tenart @ 2022-04-12 13:58 UTC (permalink / raw)
  To: davem, kuba, pabeni; +Cc: Antoine Tenart, netdev, Eric Dumazet

Commit 5337824f4dc4 ("net: annotate accesses to queue->trans_start")
introduced a new helper, txq_trans_cond_update, to update
queue->trans_start using WRITE_ONCE. One snippet in drivers/net/tun.c
was missed, as it was introduced roughly at the same time.

Fixes: 5337824f4dc4 ("net: annotate accesses to queue->trans_start")
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Antoine Tenart <atenart@kernel.org>
---
 drivers/net/tun.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 276a0e42ca8e..dbe4c0a4be2c 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -1124,7 +1124,7 @@ static netdev_tx_t tun_net_xmit(struct sk_buff *skb, struct net_device *dev)
 
 	/* NETIF_F_LLTX requires to do our own update of trans_start */
 	queue = netdev_get_tx_queue(dev, txq);
-	queue->trans_start = jiffies;
+	txq_trans_cond_update(queue);
 
 	/* Notify and wake up reader process */
 	if (tfile->flags & TUN_FASYNC)
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net] tun: annotate access to queue->trans_start
  2022-04-12 13:58 [PATCH net] tun: annotate access to queue->trans_start Antoine Tenart
@ 2022-04-13 21:05 ` Eric Dumazet
  2022-04-14  6:50 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Dumazet @ 2022-04-13 21:05 UTC (permalink / raw)
  To: Antoine Tenart; +Cc: davem, kuba, pabeni, netdev

On Tue, Apr 12, 2022 at 6:59 AM Antoine Tenart <atenart@kernel.org> wrote:
>
> Commit 5337824f4dc4 ("net: annotate accesses to queue->trans_start")
> introduced a new helper, txq_trans_cond_update, to update
> queue->trans_start using WRITE_ONCE. One snippet in drivers/net/tun.c
> was missed, as it was introduced roughly at the same time.
>

LGTM, thanks.
Reviewed-by: Eric Dumazet <edumazet@google.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net] tun: annotate access to queue->trans_start
  2022-04-12 13:58 [PATCH net] tun: annotate access to queue->trans_start Antoine Tenart
  2022-04-13 21:05 ` Eric Dumazet
@ 2022-04-14  6:50 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-04-14  6:50 UTC (permalink / raw)
  To: Antoine Tenart; +Cc: davem, kuba, pabeni, netdev, edumazet

Hello:

This patch was applied to netdev/net.git (master)
by Paolo Abeni <pabeni@redhat.com>:

On Tue, 12 Apr 2022 15:58:52 +0200 you wrote:
> Commit 5337824f4dc4 ("net: annotate accesses to queue->trans_start")
> introduced a new helper, txq_trans_cond_update, to update
> queue->trans_start using WRITE_ONCE. One snippet in drivers/net/tun.c
> was missed, as it was introduced roughly at the same time.
> 
> Fixes: 5337824f4dc4 ("net: annotate accesses to queue->trans_start")
> Cc: Eric Dumazet <edumazet@google.com>
> Signed-off-by: Antoine Tenart <atenart@kernel.org>
> 
> [...]

Here is the summary with links:
  - [net] tun: annotate access to queue->trans_start
    https://git.kernel.org/netdev/net/c/968a1a5d6541

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-14  6:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 13:58 [PATCH net] tun: annotate access to queue->trans_start Antoine Tenart
2022-04-13 21:05 ` Eric Dumazet
2022-04-14  6:50 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.