Skip to content

Commit

Permalink
qla2xxx: Increase room in request queue for sending priority packets
Browse files Browse the repository at this point in the history
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Himanshu Madhani authored and Christoph Hellwig committed Sep 25, 2014
1 parent 75554b6 commit 9400703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/qla2xxx/qla_iocb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ qla2x00_alloc_iocbs(scsi_qla_host_t *vha, srb_t *sp)

skip_cmd_array:
/* Check for room on request queue. */
if (req->cnt < req_cnt) {
if (req->cnt < req_cnt + 2) {
if (ha->mqenable || IS_QLA83XX(ha) || IS_QLA27XX(ha))
cnt = RD_REG_DWORD(&reg->isp25mq.req_q_out);
else if (IS_P3P_TYPE(ha))
Expand All @@ -1920,7 +1920,7 @@ qla2x00_alloc_iocbs(scsi_qla_host_t *vha, srb_t *sp)
req->cnt = req->length -
(req->ring_index - cnt);
}
if (req->cnt < req_cnt)
if (req->cnt < req_cnt + 2)
goto queuing_error;

/* Prep packet */
Expand Down

0 comments on commit 9400703

Please sign in to comment.