|
@@ -2672,6 +2672,19 @@ qla82xx_start_scsi(srb_t *sp)
|
|
sufficient_dsds:
|
|
sufficient_dsds:
|
|
req_cnt = 1;
|
|
req_cnt = 1;
|
|
|
|
|
|
|
|
+ if (req->cnt < (req_cnt + 2)) {
|
|
|
|
+ cnt = (uint16_t)RD_REG_DWORD_RELAXED(
|
|
|
|
+ ®->req_q_out[0]);
|
|
|
|
+ if (req->ring_index < cnt)
|
|
|
|
+ req->cnt = cnt - req->ring_index;
|
|
|
|
+ else
|
|
|
|
+ req->cnt = req->length -
|
|
|
|
+ (req->ring_index - cnt);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (req->cnt < (req_cnt + 2))
|
|
|
|
+ goto queuing_error;
|
|
|
|
+
|
|
ctx = sp->ctx = mempool_alloc(ha->ctx_mempool, GFP_ATOMIC);
|
|
ctx = sp->ctx = mempool_alloc(ha->ctx_mempool, GFP_ATOMIC);
|
|
if (!sp->ctx) {
|
|
if (!sp->ctx) {
|
|
DEBUG(printk(KERN_INFO
|
|
DEBUG(printk(KERN_INFO
|