* [PATCH][linux 2.6.18] pvusb: mark request as consumed after finished using it
@ 2014-09-26 9:10 Juergen Gross
0 siblings, 0 replies; only message in thread
From: Juergen Gross @ 2014-09-26 9:10 UTC (permalink / raw)
To: xen-devel, jbeulich; +Cc: Juergen Gross
A request from the pvusb frontend should be marked as consumed by the
backend only after the backend isn't accessing the request data in the
communication ring any more.
Signed-off-by: Juergen Gross <jgross@suse.com>
diff -r 2b001f768b76 drivers/xen/usbback/usbback.c
--- a/drivers/xen/usbback/usbback.c Tue Jul 08 11:53:53 2014 +0200
+++ b/drivers/xen/usbback/usbback.c Fri Sep 26 11:01:57 2014 +0200
@@ -1003,10 +1003,10 @@ static int usbbk_start_submit_urb(usbif_
}
req = RING_GET_REQUEST(urb_ring, rc);
- urb_ring->req_cons = ++rc;
dispatch_request_to_pending_reqs(usbif, req,
pending_req);
+ urb_ring->req_cons = ++rc;
cond_resched();
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-26 9:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-26 9:10 [PATCH][linux 2.6.18] pvusb: mark request as consumed after finished using it Juergen Gross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).