search for: sg_unset_end_mark

Displaying 2 results from an estimated 2 matches for "sg_unset_end_mark".

2013 Jan 02
0
[PATCH] virtio: use chained scatterlists
...out, in); @@ -154,7 +155,11 @@ static int virtblk_bio_send_flush(struct virtblk_req *vbr) sg_set_buf(&vbr->sg[out++], &vbr->out_hdr, sizeof(vbr->out_hdr)); sg_set_buf(&vbr->sg[out + in++], &vbr->status, sizeof(vbr->status)); - virtblk_add_req(vbr, out, in); + sg_unset_end_markers(vbr->sg, out + in); + sg_mark_end(&vbr->sg[out - 1]); + sg_mark_end(&vbr->sg[out + in - 1]); + + virtblk_add_req(vbr, vbr->sg, vbr->sg + out); return 0; } @@ -174,9 +179,6 @@ static int virtblk_bio_send_data(struct virtblk_req *vbr) num = blk_bio_map_sg(vblk->d...
2013 Jan 02
0
[PATCH] virtio: use chained scatterlists
...out, in); @@ -154,7 +155,11 @@ static int virtblk_bio_send_flush(struct virtblk_req *vbr) sg_set_buf(&vbr->sg[out++], &vbr->out_hdr, sizeof(vbr->out_hdr)); sg_set_buf(&vbr->sg[out + in++], &vbr->status, sizeof(vbr->status)); - virtblk_add_req(vbr, out, in); + sg_unset_end_markers(vbr->sg, out + in); + sg_mark_end(&vbr->sg[out - 1]); + sg_mark_end(&vbr->sg[out + in - 1]); + + virtblk_add_req(vbr, vbr->sg, vbr->sg + out); return 0; } @@ -174,9 +179,6 @@ static int virtblk_bio_send_data(struct virtblk_req *vbr) num = blk_bio_map_sg(vblk->d...