[SG] Update drivers to use sg helpers
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
@@ -918,6 +918,7 @@ queue_next:
|
||||
DBGPX(
|
||||
printk("sector=%d, nr_sectors=%d\n", creq->sector, creq->nr_sectors);
|
||||
);
|
||||
sg_init_table(tmp_sg, SG_MAX);
|
||||
seg = blk_rq_map_sg(q, creq, tmp_sg);
|
||||
|
||||
/* Now do all the DMA Mappings */
|
||||
@@ -929,7 +930,7 @@ DBGPX(
|
||||
{
|
||||
c->req.sg[i].size = tmp_sg[i].length;
|
||||
c->req.sg[i].addr = (__u32) pci_map_page(h->pci_dev,
|
||||
tmp_sg[i].page,
|
||||
sg_page(&tmp_sg[i]),
|
||||
tmp_sg[i].offset,
|
||||
tmp_sg[i].length, dir);
|
||||
}
|
||||
|
Reference in New Issue
Block a user