Patch "tun: annotate access to queue->trans_start" has been added to the 5.17-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    tun: annotate access to queue->trans_start

to the 5.17-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tun-annotate-access-to-queue-trans_start.patch
and it can be found in the queue-5.17 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9a6b9e9a91060c5847c786b6184621736c7c371b
Author: Antoine Tenart <atenart@xxxxxxxxxx>
Date:   Tue Apr 12 15:58:52 2022 +0200

    tun: annotate access to queue->trans_start
    
    [ Upstream commit 968a1a5d6541cd24e37dadc1926eab9c10aeb09b ]
    
    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@xxxxxxxxxx>
    Signed-off-by: Antoine Tenart <atenart@xxxxxxxxxx>
    Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220412135852.466386-1-atenart@xxxxxxxxxx
    Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index de999e0fedbc..aa78d7e00289 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -1106,7 +1106,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)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux