diff options
| author | Mike Christie <[email protected]> | 2021-02-27 11:00:05 -0600 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-03-04 17:37:02 -0500 |
| commit | 3d75948b8320ac167ec2efe5a8ebf44bdcb3cc14 (patch) | |
| tree | e606cbbcccf728dea7eb57e2ecc6a797232220ad /include | |
| parent | 6888da8179fd4cfff4c6b62d5587ec2cd21e316d (diff) | |
scsi: target: core: Flush submission work during TMR processing
If a cmd is on the submission workqueue then the TMR code will miss it, and
end up returning task not found or success for LUN resets. The fabric
driver might then tell the initiator that the running cmds have been
handled when they are about to run.
This adds a flush when we are processing TMRs to make sure queued cmds do
not run after returning the TMR response.
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Laurence Oberman <[email protected]>
Reviewed-by: Bodo Stroesser <[email protected]>
Signed-off-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
