diff options
author | Saurav Kashyap <saurav.kashyap@qlogic.com> | 2011-08-16 22:31:50 +0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-29 11:14:56 +0400 |
commit | 491118dff9aeb207408bd42aa4897bc2c145747f (patch) | |
tree | a547d517af58bc3d19592b7de8127e6f79887176 /drivers | |
parent | 63d92d3e2e211660b1dff155e98e924d560e8163 (diff) | |
download | linux-491118dff9aeb207408bd42aa4897bc2c145747f.tar.xz |
[SCSI] qla2xxx: During loopdown perform Diagnostic loopback.
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 07d1767cd26b..e5954a4e4b5f 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -704,6 +704,7 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) elreq.options = bsg_job->request->rqst_data.h_vendor.vendor_cmd[1]; if ((ha->current_topology == ISP_CFG_F || + (atomic_read(&vha->loop_state) == LOOP_DOWN) || (IS_QLA81XX(ha) && le32_to_cpu(*(uint32_t *)req_data) == ELS_OPCODE_BYTE && req_data_len == MAX_ELS_FRAME_PAYLOAD)) && |