scsi: libiscsi: Fix iSCSI host workq destruction
authorMike Christie <michael.christie@oracle.com>
Sun, 7 Feb 2021 04:46:03 +0000 (22:46 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Feb 2021 03:39:04 +0000 (22:39 -0500)
commitc435f0a9ecb7435e70f447b7231ca52de589b252
tree47e1398994f01e6278a47b75f358b3c264cbd559
parent14936b1ed249916c28642d0db47a51b085ce13b4
scsi: libiscsi: Fix iSCSI host workq destruction

We allocate the iSCSI host workq in iscsi_host_alloc() so iscsi_host_free()
should do the destruction. Drivers can then do their error/goto handling
and call iscsi_host_free() to clean up what has been allocated in
iscsi_host_alloc().

Link: https://lore.kernel.org/r/20210207044608.27585-5-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>
drivers/scsi/libiscsi.c