scsi: qedf: Wait for stag work during unload

[ Upstream commit 78e88472b6 ]

If stag work is already scheduled and unload is called, it can lead to
issues as unload cleans up the work element. Wait for stag work to get
completed before cleanup during unload.

Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20240515091101.18754-3-skashyap@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Saurav Kashyap 2024-05-15 14:41:00 +05:30 • committed by Greg Kroah-Hartman
commit e949e39acd
2 changed files with 28 additions and 3 deletions