[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


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
  • Date: Fri, 26 Sep 2014 10:11:02 +0000
  • Delivery-date: Fri, 26 Sep 2014 10:11:07 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.