mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-11 00:04:33 +08:00
Revert "mwifiex: cancel pcie/sdio work in remove/shutdown handler"
This reverts commitb713bbf147
. The "fix" in question does not actually fix all related problems, and it also introduces new deadlock possibilities. Since commitb014e96d1a
("PCI: Protect pci_error_handlers->reset_notify() usage with device_lock()"), the race in question is actually resolved (PCIe reset cannot happen at the same time as remove()). Instead, this "fix" just introduces a deadlock where mwifiex_pcie_card_reset_work() is waiting on device_lock, which is held by PCIe device remove(), which is waiting on...mwifiex_pcie_card_reset_work(). The proper thing to do is just to fix the deadlock. Patch for this will come separately. Cc: Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
7e2c49222b
commit
7e34c0d2f6
@ -310,8 +310,6 @@ static void mwifiex_pcie_remove(struct pci_dev *pdev)
|
||||
mwifiex_init_shutdown_fw(priv, MWIFIEX_FUNC_SHUTDOWN);
|
||||
}
|
||||
|
||||
cancel_work_sync(&card->work);
|
||||
|
||||
mwifiex_remove_card(adapter);
|
||||
}
|
||||
|
||||
|
@ -399,8 +399,6 @@ mwifiex_sdio_remove(struct sdio_func *func)
|
||||
mwifiex_init_shutdown_fw(priv, MWIFIEX_FUNC_SHUTDOWN);
|
||||
}
|
||||
|
||||
cancel_work_sync(&card->work);
|
||||
|
||||
mwifiex_remove_card(adapter);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user