WSL2-Linux-Kernel/drivers/net/ethernet/samsung/sxgbe
Lino Sanfilippo 980f140493 net: ethernet: sxgbe: remove private tx queue lock
The driver uses a private lock for synchronization of the xmit function and
the xmit completion handler, but since the NETIF_F_LLTX flag is not set,
the xmit function is also called with the xmit_lock held.

On the other hand the completion handler uses the reverse locking order by
first taking the private lock and (in case that the tx queue had been
stopped) then the xmit_lock.

Improve the locking by removing the private lock and using only the
xmit_lock for synchronization instead.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-10 23:23:35 -05:00
..
Makefile sxgbe: remove unused code 2016-02-10 06:10:17 -05:00
sxgbe_common.h net: ethernet: sxgbe: remove private tx queue lock 2016-12-10 23:23:35 -05:00
sxgbe_core.c net: sxgbe: Added rxqueue enable function 2014-04-30 16:12:22 -04:00
sxgbe_desc.c net: sxgbe: Added set function for interrupt on complete 2014-04-30 16:12:22 -04:00
sxgbe_desc.h net: sxgbe: Added set function for interrupt on complete 2014-04-30 16:12:22 -04:00
sxgbe_dma.c net: sxgbe: sw reset moved to probe function 2014-04-30 16:12:22 -04:00
sxgbe_dma.h net: sxgbe: add TSO support for Samsung sxgbe 2014-03-26 16:49:31 -04:00
sxgbe_ethtool.c net: ethernet: sxgbe: use phy_ethtool_{get|set}_link_ksettings 2016-06-28 09:12:35 -04:00
sxgbe_main.c net: ethernet: sxgbe: remove private tx queue lock 2016-12-10 23:23:35 -05:00
sxgbe_mdio.c phy: Add API for {un}registering an mdio device to a bus. 2016-01-07 14:31:26 -05:00
sxgbe_mtl.c
sxgbe_mtl.h
sxgbe_platform.c net: sxgbe: fix error paths in sxgbe_platform_probe() 2016-03-27 22:39:22 -04:00
sxgbe_reg.h net: sxgbe: remove duplicate SXGBE_CORE_L34_ADDCTL_REG define 2014-06-11 15:01:30 -07:00