|
@@ -1501,7 +1501,7 @@ static int srp_map_idb(struct srp_rdma_ch *ch, struct srp_request *req,
|
|
|
|
|
|
if (dev->use_fast_reg) {
|
|
if (dev->use_fast_reg) {
|
|
state.sg = idb_sg;
|
|
state.sg = idb_sg;
|
|
- sg_set_buf(idb_sg, req->indirect_desc, idb_len);
|
|
|
|
|
|
+ sg_init_one(idb_sg, req->indirect_desc, idb_len);
|
|
idb_sg->dma_address = req->indirect_dma_addr; /* hack! */
|
|
idb_sg->dma_address = req->indirect_dma_addr; /* hack! */
|
|
#ifdef CONFIG_NEED_SG_DMA_LENGTH
|
|
#ifdef CONFIG_NEED_SG_DMA_LENGTH
|
|
idb_sg->dma_length = idb_sg->length; /* hack^2 */
|
|
idb_sg->dma_length = idb_sg->length; /* hack^2 */
|