Skip to content

Commit

Permalink
[net/9p] Don't re-pin pages on retrying virtqueue_add_buf().
Browse files Browse the repository at this point in the history
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
  • Loading branch information
Venkateswararao Jujjuri (JV) authored and Eric Van Hensbergen committed Mar 22, 2011
1 parent a01a984 commit 316ad55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/9p/trans_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ p9_virtio_request(struct p9_client *client, struct p9_req_t *req)

P9_DPRINTK(P9_DEBUG_TRANS, "9p debug: virtio request\n");

req_retry:
req->status = REQ_STATUS_SENT;

if (req->tc->pbuf_size && (req->tc->pubuf && P9_IS_USER_CONTEXT)) {
Expand Down Expand Up @@ -295,6 +294,7 @@ p9_virtio_request(struct p9_client *client, struct p9_req_t *req)
}
}

req_retry_pinned:
spin_lock_irqsave(&chan->lock, flags);

/* Handle out VirtIO ring buffers */
Expand Down Expand Up @@ -355,7 +355,7 @@ p9_virtio_request(struct p9_client *client, struct p9_req_t *req)
return err;

P9_DPRINTK(P9_DEBUG_TRANS, "9p:Retry virtio request\n");
goto req_retry;
goto req_retry_pinned;
} else {
spin_unlock_irqrestore(&chan->lock, flags);
P9_DPRINTK(P9_DEBUG_TRANS,
Expand Down

0 comments on commit 316ad55

Please sign in to comment.