From: Juergen Gross <jgross@suse.com>
To: xen-devel@lists.xensource.com, jbeulich@suse.com
Cc: Juergen Gross <jgross@suse.com>
Subject: [PATCH][linux 2.6.18] pvusb: mark request as consumed after finished using it
Date: Fri, 26 Sep 2014 11:10:00 +0200 [thread overview]
Message-ID: <1411722600-13380-1-git-send-email-jgross@suse.com> (raw)
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();
}
reply other threads:[~2014-09-26 9:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1411722600-13380-1-git-send-email-jgross@suse.com \
--to=jgross@suse.com \
--cc=jbeulich@suse.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).