Commit ed17b031 authored by Jens Axboe's avatar Jens Axboe

Fusion: sg chaining support

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 1f6f31a0
...@@ -293,7 +293,7 @@ mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, ...@@ -293,7 +293,7 @@ mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
for (ii=0; ii < (numSgeThisFrame-1); ii++) { for (ii=0; ii < (numSgeThisFrame-1); ii++) {
thisxfer = sg_dma_len(sg); thisxfer = sg_dma_len(sg);
if (thisxfer == 0) { if (thisxfer == 0) {
sg ++; /* Get next SG element from the OS */ sg = sg_next(sg); /* Get next SG element from the OS */
sg_done++; sg_done++;
continue; continue;
} }
...@@ -301,7 +301,7 @@ mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, ...@@ -301,7 +301,7 @@ mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
v2 = sg_dma_address(sg); v2 = sg_dma_address(sg);
mptscsih_add_sge(psge, sgflags | thisxfer, v2); mptscsih_add_sge(psge, sgflags | thisxfer, v2);
sg++; /* Get next SG element from the OS */ sg = sg_next(sg); /* Get next SG element from the OS */
psge += (sizeof(u32) + sizeof(dma_addr_t)); psge += (sizeof(u32) + sizeof(dma_addr_t));
sgeOffset += (sizeof(u32) + sizeof(dma_addr_t)); sgeOffset += (sizeof(u32) + sizeof(dma_addr_t));
sg_done++; sg_done++;
...@@ -322,7 +322,7 @@ mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, ...@@ -322,7 +322,7 @@ mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
v2 = sg_dma_address(sg); v2 = sg_dma_address(sg);
mptscsih_add_sge(psge, sgflags | thisxfer, v2); mptscsih_add_sge(psge, sgflags | thisxfer, v2);
/* /*
sg++; sg = sg_next(sg);
psge += (sizeof(u32) + sizeof(dma_addr_t)); psge += (sizeof(u32) + sizeof(dma_addr_t));
*/ */
sgeOffset += (sizeof(u32) + sizeof(dma_addr_t)); sgeOffset += (sizeof(u32) + sizeof(dma_addr_t));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment