summaryrefslogtreecommitdiff
path: root/drivers/interconnect
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2024-04-29 12:11:47 +0300
committerJakub Kicinski <kuba@kernel.org>2024-05-01 04:30:56 +0300
commit9067eccdd7849dd120d5495dbd5a686fa6ed2c1a (patch)
tree7340571e21aa7692187367eb918d9feb0f3d576a /drivers/interconnect
parent9f8eeea1643c213c0e1ad2e546a15536200d216b (diff)
downloadlinux-9067eccdd7849dd120d5495dbd5a686fa6ed2c1a.tar.xz
cxgb4: Properly lock TX queue for the selftest.
The selftest for the driver sends a dummy packet and checks if the packet will be received properly as it should be. The regular TX path and the selftest can use the same network queue so locking is required and was missing in the selftest path. This was addressed in the commit cited below. Unfortunately locking the TX queue requires BH to be disabled which is not the case in selftest path which is invoked in process context. Lockdep should be complaining about this. Use __netif_tx_lock_bh() for TX queue locking. Fixes: c650e04898072 ("cxgb4: Fix race between loopback and normal Tx path") Reported-by: "John B. Wyatt IV" <jwyatt@redhat.com> Closes: https://lore.kernel.org/all/Zic0ot5aGgR-V4Ks@thinkpad2021/ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Link: https://lore.kernel.org/r/20240429091147.YWAaal4v@linutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/interconnect')
0 files changed, 0 insertions, 0 deletions