pvusb: mark request as consumed after finished using it
Juergen Gross
maintainerPATCH 1/1 pvusb: 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 <[email protected]>
drivers/xen/usbback/usbback.c +1 -1
@@ -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 (); }