Skip to contentSkip to conversation

Don't re-pin pages on retrying virtqueue_add_buf().

PATCH In review Venkateswararao Jujjuri (JV) 1 participant 1 message Mar 14, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Don't re-pin pages on retrying virtqueue_add_buf().

---
 net/9p/trans_virtio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/9p/trans_virtio.c +2 -2
index cb98af9..c6e1ae2 100644
@@ -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)) {
@@ -295,6 +294,7 @@ req_retry:
 		}
 	}
 
+req_retry_pinned:
 	spin_lock_irqsave(&chan->lock, flags);
 
 	/* Handle out VirtIO ring buffers */
@@ -355,7 +355,7 @@ req_retry:
 				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,
Signature · 1 line
1.6.5.2