[SCSI] block: fix the partial mappings with struct rq_map_data
[deliverable/linux.git] / block / blk-map.c
index 2990447f45e913f7aa968ddc3979ea7b1a027a80..c7e55b23a2bc15613b061bdaaaf77e68542ab2f4 100644 (file)
@@ -150,6 +150,9 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq,
                        bio = rq->bio;
                bytes_read += ret;
                ubuf += ret;
+
+               if (map_data)
+                       map_data->offset += ret;
        }
 
        if (!bio_flagged(bio, BIO_USER_MAPPED))
This page took 0.072378 seconds and 5 git commands to generate.