Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197859
b: refs/heads/master
c: dc3f5e6
h: refs/heads/master
i:
  197857: a03ecd3
  197855: 253131d
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Rusty Russell committed May 19, 2010
1 parent c2640c1 commit d5af60e
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: 28cfc828e7e1efc620df70b99519784333abcffd
refs/heads/master: dc3f5e68f846eec38fb31d78f0b6e83633ad375e
6 changes: 3 additions & 3 deletions trunk/net/9p/trans_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static void req_done(struct virtqueue *vq)

P9_DPRINTK(P9_DEBUG_TRANS, ": request done\n");

while ((rc = chan->vq->vq_ops->get_buf(chan->vq, &len)) != NULL) {
while ((rc = virtqueue_get_buf(chan->vq, &len)) != NULL) {
P9_DPRINTK(P9_DEBUG_TRANS, ": rc %p\n", rc);
P9_DPRINTK(P9_DEBUG_TRANS, ": lookup tag %d\n", rc->tag);
req = p9_tag_lookup(chan->client, rc->tag);
Expand Down Expand Up @@ -209,13 +209,13 @@ p9_virtio_request(struct p9_client *client, struct p9_req_t *req)

req->status = REQ_STATUS_SENT;

if (chan->vq->vq_ops->add_buf(chan->vq, chan->sg, out, in, req->tc) < 0) {
if (virtqueue_add_buf(chan->vq, chan->sg, out, in, req->tc) < 0) {
P9_DPRINTK(P9_DEBUG_TRANS,
"9p debug: virtio rpc add_buf returned failure");
return -EIO;
}

chan->vq->vq_ops->kick(chan->vq);
virtqueue_kick(chan->vq);

P9_DPRINTK(P9_DEBUG_TRANS, "9p debug: virtio request kicked\n");
return 0;
Expand Down

0 comments on commit d5af60e

Please sign in to comment.