scsi: iscsi: Fix NOP handling during conn recovery
authorMike Christie <michael.christie@oracle.com>
Fri, 8 Apr 2022 00:13:12 +0000 (19:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:38:56 +0000 (14:38 +0200)
commitc7f4f3016fea68faba6c8846cc6b35717b253e7a
tree27a739caadc7c8ac0f40e7b459e06c8ca74e9005
parente4efe868aa14c8557841ecf30b13667f96a12111
scsi: iscsi: Fix NOP handling during conn recovery

[ Upstream commit 44ac97109e42f87b1a34954704b81b6c8eca80c4 ]

If a offload driver doesn't use the xmit workqueue, then when we are doing
ep_disconnect libiscsi can still inject PDUs to the driver. This adds a
check for if the connection is bound before trying to inject PDUs.

Link: https://lore.kernel.org/r/20220408001314.5014-9-michael.christie@oracle.com
Tested-by: Manish Rangankar <mrangankar@marvell.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Reviewed-by: Chris Leech <cleech@redhat.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/libiscsi.c
include/scsi/libiscsi.h