iavf: Fix close path on shutdown and remove in iavfr driver.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | iavf: Fix shutdown pci callback to match the remove onedrivers/ | +12 | 0 replies | |
| 2/2 | iavf: Fix race condition between iavf_shutdown and iavf_removedrivers/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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