diff options
author | Vikas Chaudhary <vikas.chaudhary@qlogic.com> | 2013-05-02 03:42:10 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 19:16:50 -0400 |
commit | d522844a315233162dd715c620c14ac47110eeca (patch) | |
tree | 83057b1b0b8b2a63f6e31a0255c19aaf799d5c9e /drivers/scsi/qla4xxx/ql4_iocb.c | |
parent | 98b8e179edb768c57b8b18e4d61d4b02d1b82b37 (diff) |
[SCSI] qla4xxx: Fix iocb_cnt calculation in qla4xxx_send_mbox_iocb()
Increment 'ha->iocb_cnt' before adding mbox_iocb to iocb queue.
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_iocb.c')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_iocb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_iocb.c b/drivers/scsi/qla4xxx/ql4_iocb.c index 14fec976f634..fad71ed067ec 100644 --- a/drivers/scsi/qla4xxx/ql4_iocb.c +++ b/drivers/scsi/qla4xxx/ql4_iocb.c | |||
@@ -507,6 +507,7 @@ static int qla4xxx_send_mbox_iocb(struct scsi_qla_host *ha, struct mrb *mrb, | |||
507 | mrb->mbox_cmd = in_mbox[0]; | 507 | mrb->mbox_cmd = in_mbox[0]; |
508 | wmb(); | 508 | wmb(); |
509 | 509 | ||
510 | ha->iocb_cnt += mrb->iocb_cnt; | ||
510 | ha->isp_ops->queue_iocb(ha); | 511 | ha->isp_ops->queue_iocb(ha); |
511 | exit_mbox_iocb: | 512 | exit_mbox_iocb: |
512 | spin_unlock_irqrestore(&ha->hardware_lock, flags); | 513 | spin_unlock_irqrestore(&ha->hardware_lock, flags); |