mirror of
https://github.com/torvalds/linux.git
synced 2026-09-20 01:20:03 +02:00
fcoe_link_speed_update() calls __ethtool_get_link_ksettings() on the lport's netdev, which will soon take the dev's ops lock. Some notifier callers already arrive with this lock held. Switch to netif_get_link_ksettings() and adjust the explicit call sites to take the netdev lock explicitly. Within fcoe_device_notification() try to only query the link speed from notifiers which announce link state change (UP / CHANGE), DOWN / GOING_DOWN notifiers are slightly sketchy when it comes to ops locking right now, and the code already special-cases those by maintaining the local link_possible variable. Also take the lock in bnx2fc_net_config(), even though I think that bnx2fc call sites are largely irrelevant since it's not an ops-locked driver. Link: https://patch.msgid.link/20260603012840.2254293-11-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| 57xx_hsi_bnx2fc.h | ||
| bnx2fc_constants.h | ||
| bnx2fc_debug.c | ||
| bnx2fc_debug.h | ||
| bnx2fc_els.c | ||
| bnx2fc_fcoe.c | ||
| bnx2fc_hwi.c | ||
| bnx2fc_io.c | ||
| bnx2fc_tgt.c | ||
| bnx2fc.h | ||
| Kconfig | ||
| Makefile | ||