diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2013-03-28 08:21:26 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-04-11 15:48:42 -0700 |
commit | 1b98b42150af7ab1673a49219ea86111109e0ef8 (patch) | |
tree | a930f3e86c79888c4018932c2d522b62ceb4b365 /drivers/scsi/qla2xxx/qla_bsg.c | |
parent | 490b773a02a1832f629fe36e3e5d6b9d54f74d2c (diff) | |
download | blackbird-op-linux-1b98b42150af7ab1673a49219ea86111109e0ef8.tar.gz blackbird-op-linux-1b98b42150af7ab1673a49219ea86111109e0ef8.zip |
[SCSI] qla2xxx: Obtain loopback iteration count from bsg request.
qla2x00_loopback_test() was hard setting the loopback iteration
count to 1 rather than obtaining it from the bsg request.
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_bsg.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 7d2f021dda6d..39719f892488 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -768,6 +768,8 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) elreq.transfer_size = req_data_len; elreq.options = bsg_job->request->rqst_data.h_vendor.vendor_cmd[1]; + elreq.iteration_count = + bsg_job->request->rqst_data.h_vendor.vendor_cmd[2]; if (atomic_read(&vha->loop_state) == LOOP_READY && (ha->current_topology == ISP_CFG_F || |