diff options
author | Darren Trapp <darren.trapp@cavium.com> | 2018-03-20 23:09:35 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-03-21 18:38:54 -0400 |
commit | 870fe24f3c0b2cf40998f8ab21d4cf4e4e9cf619 (patch) | |
tree | c33e7433afd7c1c47cb8a2917ec2d888be548079 /drivers/scsi/qla2xxx/qla_def.h | |
parent | 1763c1fd76d8e26c5e6d5a3e415e7deeeda3c5da (diff) | |
download | linux-stable-870fe24f3c0b2cf40998f8ab21d4cf4e4e9cf619.tar.gz linux-stable-870fe24f3c0b2cf40998f8ab21d4cf4e4e9cf619.tar.bz2 linux-stable-870fe24f3c0b2cf40998f8ab21d4cf4e4e9cf619.zip |
scsi: qla2xxx: Return busy if rport going away
This patch adds mechanism to return EBUSY if rport is going away
to prevent exhausting FC-NVMe layer's retry counter.
Signed-off-by: Darren Trapp <darren.trapp@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index cba749d27154..59c449b141cd 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2356,6 +2356,7 @@ typedef struct fc_port { uint8_t nvme_flag; #define NVME_FLAG_REGISTERED 4 #define NVME_FLAG_DELETING 2 +#define NVME_FLAG_RESETTING 1 struct fc_port *conflict; unsigned char logout_completed; |