Skip to content

iavf: Fix close path on shutdown and remove in iavfr driver.

Mateusz Palczewski intel-wired-lan 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iavf: Fix shutdown pci callback to match the remove onedrivers/net/ethernet/intel/iavf/iavf_main.c+12 -280 replies
2/2iavf: Fix race condition between iavf_shutdown and iavf_removedrivers/net/ethernet/intel/iavf/iavf_main.c+9 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Intel-wired-lan] [PATCH net v1 0/2] iavf: Fix close path on shutdown and remove in iavfr driver.

From: Slawomir Laba <[email protected]>

iavf_shutdown was implementing an incomplete version of iavf_remove. It misses several calls to the kernel like iavf_free_misc_irq, iavf_reset_interrupt_capability, iounmap that might break the system on reboot or hibernation.

Fix a deadlock introduced by commit 974578017fc1
("iavf: Add waiting so the port is initialized in remove") due to race condition between iavf_shutdown and iavf_remove, where iavf_remove stucks forever in while loop since iavf_shutdown already set __IAVF_REMOVE adapter state.

SlawomirX Laba (2):
iavf: Fix shutdown pci callback to match the remove one
iavf: Fix race condition between iavf_shutdown and iavf_remove

 drivers/net/ethernet/intel/iavf/iavf_main.c | 58 ++++++++-------------
 1 file changed, 21 insertions(+), 37 deletions(-)
Signature · 6 lines
2.27.0

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan