diff options
author | Martin Wilck <[email protected]> | 2020-04-21 22:46:21 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-04-21 23:53:34 -0400 |
commit | 5a263892d7d0b4fe351363f8d1a14c6a75955475 (patch) | |
tree | cc90ddd5ab714690ee436ca4d5bdac276a5da20a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 856e152a3c08bf7987cbd41900741d83d9cddc8e (diff) |
scsi: qla2xxx: check UNLOADING before posting async work
qlt_free_session_done() tries to post async PRLO / LOGO, and waits for the
completion of these async commands. If UNLOADING is set, this is doomed to
timeout, because the async logout command will never complete.
The only way to avoid waiting pointlessly is to fail posting these commands
in the first place if the driver is in UNLOADING state. In general,
posting any command should be avoided when the driver is UNLOADING.
With this patch, "rmmod qla2xxx" completes without noticeable delay.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 45235022da99 ("scsi: qla2xxx: Fix driver unload by shutting down chip")
Acked-by: Arun Easi <[email protected]>
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin Wilck <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions