[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] usbback: mark request as consumed after finished using it
# HG changeset patch # User Juergen Gross <jgross@xxxxxxxx> # Date 1411725851 -7200 # Node ID ab22257ffed27a8700322f1a185a399dca909c59 # Parent 52f54ddbf4495d75384fc00caa075c42d4a6c3fd usbback: mark request as consumed after finished using it 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@xxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 52f54ddbf449 -r ab22257ffed2 drivers/xen/usbback/usbback.c --- a/drivers/xen/usbback/usbback.c Fri Jul 25 08:22:58 2014 +0200 +++ b/drivers/xen/usbback/usbback.c Fri Sep 26 12:04:11 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(); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog |
Lists.xenproject.org is hosted with RackSpace, monitoring our |