Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147040
b: refs/heads/master
c: 6c3b46f
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed May 18, 2009
1 parent 2e6e0b0 commit 9b1409a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77f6bf57ba9d2c50173536dbfdacdab27cb867ca
refs/heads/master: 6c3b46f74587d46e71b8c2b78fdca626a3aca280
4 changes: 2 additions & 2 deletions trunk/drivers/block/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,11 @@ static bool do_req(struct request_queue *q, struct virtio_blk *vblk,

static void do_virtblk_request(struct request_queue *q)
{
struct virtio_blk *vblk = NULL;
struct virtio_blk *vblk = q->queuedata;
struct request *req;
unsigned int issued = 0;

while ((req = blk_peek_request(q)) != NULL) {
vblk = req->rq_disk->private_data;
BUG_ON(req->nr_phys_segments + 2 > vblk->sg_elems);

/* If this request fails, stop queue and wait for something to
Expand Down Expand Up @@ -249,6 +248,7 @@ static int virtblk_probe(struct virtio_device *vdev)
goto out_put_disk;
}

vblk->disk->queue->queuedata = vblk;
queue_flag_set_unlocked(QUEUE_FLAG_VIRT, vblk->disk->queue);

if (index < 26) {
Expand Down

0 comments on commit 9b1409a

Please sign in to comment.