diff options
author | Mike Christie <michael.christie@oracle.com> | 2021-05-25 20:18:18 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-02 07:28:23 +0200 |
commit | 0c72191da68638a479602dd515b587ada913184a (patch) | |
tree | 8ca74f3199e37cac0b9866bdb4b27aaafe52d039 /drivers/scsi/qedi/qedi.h | |
parent | scsi: qedi: Fix TMF session block/unblock use (diff) | |
download | linux-0c72191da68638a479602dd515b587ada913184a.tar.xz linux-0c72191da68638a479602dd515b587ada913184a.zip |
scsi: qedi: Fix cleanup session block/unblock use
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>
Diffstat (limited to 'drivers/scsi/qedi/qedi.h')
-rw-r--r-- | drivers/scsi/qedi/qedi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qedi/qedi.h b/drivers/scsi/qedi/qedi.h index c342defc3f52..ce199a7a16b8 100644 --- a/drivers/scsi/qedi/qedi.h +++ b/drivers/scsi/qedi/qedi.h @@ -284,6 +284,7 @@ struct qedi_ctx { #define QEDI_IN_RECOVERY 5 #define QEDI_IN_OFFLINE 6 #define QEDI_IN_SHUTDOWN 7 +#define QEDI_BLOCK_IO 8 u8 mac[ETH_ALEN]; u32 src_ip[4]; |