diff options
| author | Mike Christie <[email protected]> | 2020-07-01 14:47:46 -0500 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-07-02 23:46:14 -0400 |
| commit | e463f96bdc975b780161541877f521da078a8143 (patch) | |
| tree | 84689a8508169545c32ececa11f1482c4f0a7c74 /tools/perf/scripts/python | |
| parent | 6292130093c5d102194bfe1eb6edc5563401eeb8 (diff) | |
scsi: iscsi: Delay freeing target_id
If we are doing async removal of the session, we could be doing a
scsi_remove_target from the removal workqueue, and for the offload case we
could be doing a new session addition and scan to the same host. The
add/scan might then end up trying to use the target_id of the target we are
removing.
This patch just has a delay the freeing of the target_id until after the
scsi_remove_target has completed, so we know it's no longer in use.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Lee Duncan <[email protected]>
Signed-off-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions