]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: iscsi: Fix iSCSI cls conn state
authorMike Christie <michael.christie@oracle.com>
Tue, 6 Apr 2021 17:17:46 +0000 (12:17 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Apr 2021 01:30:59 +0000 (21:30 -0400)
commit78edc75372a82c9946f6e2dfd635fb28b14f1e63
treecaed04189d781b756376f8a7e33cbc79f43e8aee
parenta25fc4682c232364bda0c546f1dbed2295a1c54e
scsi: iscsi: Fix iSCSI cls conn state

In commit ab871050ede7 ("scsi: iscsi: Fix race condition between login and
sync thread") I missed that libiscsi was now setting the iSCSI class state,
and that patch ended up resetting the state during conn stoppage and using
the wrong state value during ep_disconnect. This patch moves the setting of
the class state to the class module and then fixes the two issues above.

Link: https://lore.kernel.org/r/20210406171746.5016-1-michael.christie@oracle.com
Fixes: ab871050ede7 ("scsi: iscsi: Fix race condition between login and sync thread")
Cc: Gulam Mohamed <gulam.mohamed@oracle.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libiscsi.c
drivers/scsi/scsi_transport_iscsi.c