diff options
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r-- | drivers/block/xen-blkfront.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index b4564479f64..91fc56597e9 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -231,7 +231,7 @@ static int blkif_queue_request(struct request *req) | |||
231 | info->shadow[id].request = (unsigned long)req; | 231 | info->shadow[id].request = (unsigned long)req; |
232 | 232 | ||
233 | ring_req->id = id; | 233 | ring_req->id = id; |
234 | ring_req->sector_number = (blkif_sector_t)req->sector; | 234 | ring_req->sector_number = (blkif_sector_t)blk_rq_pos(req); |
235 | ring_req->handle = info->handle; | 235 | ring_req->handle = info->handle; |
236 | 236 | ||
237 | ring_req->operation = rq_data_dir(req) ? | 237 | ring_req->operation = rq_data_dir(req) ? |
@@ -310,11 +310,10 @@ static void do_blkif_request(struct request_queue *rq) | |||
310 | goto wait; | 310 | goto wait; |
311 | 311 | ||
312 | pr_debug("do_blk_req %p: cmd %p, sec %lx, " | 312 | pr_debug("do_blk_req %p: cmd %p, sec %lx, " |
313 | "(%u/%li) buffer:%p [%s]\n", | 313 | "(%u/%u) buffer:%p [%s]\n", |
314 | req, req->cmd, (unsigned long)req->sector, | 314 | req, req->cmd, (unsigned long)blk_rq_pos(req), |
315 | req->current_nr_sectors, | 315 | blk_rq_cur_sectors(req), blk_rq_sectors(req), |
316 | req->nr_sectors, req->buffer, | 316 | req->buffer, rq_data_dir(req) ? "write" : "read"); |
317 | rq_data_dir(req) ? "write" : "read"); | ||
318 | 317 | ||
319 | 318 | ||
320 | blkdev_dequeue_request(req); | 319 | blkdev_dequeue_request(req); |