]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:02:07 +0000 (16:02 +0200)
commit3717d86ad00fa40040ca1859c7bf67459ef51100
treeebd52dedb6d15e8ddcd0041adbf10aa66b2bb1da
parent469a8f30571242ee68fce3b9fd1cf6558685022d
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