Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197855
b: refs/heads/master
c: 09ec6b6
h: refs/heads/master
i:
  197853: 9d063cc
  197851: 8c5b5af
  197847: ffa7941
  197839: 6b76f12
  197823: 8dd322c
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Rusty Russell committed May 19, 2010
1 parent 0e1bb77 commit 253131d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 505b0451c47699ca63db70bd5ec3bba187ec4bfd
refs/heads/master: 09ec6b69d2b97d6fca16cfe91b4634506f4db0a7
6 changes: 3 additions & 3 deletions trunk/drivers/block/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static void blk_done(struct virtqueue *vq)
unsigned long flags;

spin_lock_irqsave(&vblk->lock, flags);
while ((vbr = vblk->vq->vq_ops->get_buf(vblk->vq, &len)) != NULL) {
while ((vbr = virtqueue_get_buf(vblk->vq, &len)) != NULL) {
int error;

switch (vbr->status) {
Expand Down Expand Up @@ -158,7 +158,7 @@ static bool do_req(struct request_queue *q, struct virtio_blk *vblk,
}
}

if (vblk->vq->vq_ops->add_buf(vblk->vq, vblk->sg, out, in, vbr) < 0) {
if (virtqueue_add_buf(vblk->vq, vblk->sg, out, in, vbr) < 0) {
mempool_free(vbr, vblk->pool);
return false;
}
Expand Down Expand Up @@ -187,7 +187,7 @@ static void do_virtblk_request(struct request_queue *q)
}

if (issued)
vblk->vq->vq_ops->kick(vblk->vq);
virtqueue_kick(vblk->vq);
}

static void virtblk_prepare_flush(struct request_queue *q, struct request *req)
Expand Down

0 comments on commit 253131d

Please sign in to comment.