diff options
author | Mike Christie <michael.christie@oracle.com> | 2020-07-01 21:47:46 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-07-03 05:46:14 +0200 |
commit | e463f96bdc975b780161541877f521da078a8143 (patch) | |
tree | 84689a8508169545c32ececa11f1482c4f0a7c74 /drivers/block | |
parent | scsi: core: Register sysfs for SCSI workqueue (diff) | |
download | linux-e463f96bdc975b780161541877f521da078a8143.tar.xz linux-e463f96bdc975b780161541877f521da078a8143.zip |
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/1593632868-6808-2-git-send-email-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions