]> git.baikalelectronics.ru Git - kernel.git/commit
net: use an atomic_long_t for queue->trans_timeout
authorEric Dumazet <edumazet@google.com>
Wed, 17 Nov 2021 03:29:21 +0000 (19:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2021 14:56:16 +0000 (14:56 +0000)
commit4183ad297d7aa88fb96620da87342da3698b0e82
tree4b03026ee23389b71df5a8ca657e9dd7ef639974
parent80fedf9c6441080ef348f7e5650f3edf552deff7
net: use an atomic_long_t for queue->trans_timeout

tx_timeout_show() assumed dev_watchdog() would stop all
the queues, to fetch queue->trans_timeout under protection
of the queue->_xmit_lock.

As we want to no longer disrupt transmits, we use an
atomic_long_t instead.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: david decotigny <david.decotigny@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/net-sysfs.c
net/sched/sch_generic.c