scsi: qedi: Fix cleanup session block/unblock use
authorMike Christie <michael.christie@oracle.com>
Tue, 25 May 2021 18:18:18 +0000 (13:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:41 +0000 (16:05 +0200)
commit5dd2955565e800d928655dbeb2ddd3861da873aa
tree08f059267646ed522222c7fb42552834a6de9657
parent6f36afa1550ab47b82b6b4610468dc7603e067bb
scsi: qedi: Fix cleanup session block/unblock use

[ Upstream commit 0c72191da68638a479602dd515b587ada913184a ]

Drivers shouldn't be calling block/unblock session for cmd cleanup because
the functions can change the session state from under libiscsi.  This adds
a new a driver level bit so it can block all I/O the host while it drains
the card.

Link: https://lore.kernel.org/r/20210525181821.7617-26-michael.christie@oracle.com
Reviewed-by: Manish Rangankar <mrangankar@marvell.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/qedi/qedi.h
drivers/scsi/qedi/qedi_iscsi.c