From: Juergen Gross Subject: Re: [PATCH 2/2] xen: drain submit queue in xen-usb before removing device Date: Tue, 2 Aug 2016 13:49:59 +0200 Message-ID: References: <1469791051-680-1-git-send-email-jgross@suse.com> <1469791051-680-3-git-send-email-jgross@suse.com> <1470137856.30562.92.camel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1470137856.30562.92.camel@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: "Qemu-devel" To: Gerd Hoffmann Cc: anthony.perard@citrix.com, xen-devel@lists.xensource.com, sstabellini@kernel.org, qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org On 02/08/16 13:37, Gerd Hoffmann wrote: > On Fr, 2016-07-29 at 13:17 +0200, Juergen Gross wrote: >> When unplugging a device in the Xen pvusb backend drain the submit >> queue before deallocation of the control structures. Otherwise there >> will be bogus memory accesses when I/O contracts are finished. >> >> Correlated to this issue is the handling of cancel requests: a packet >> cancelled will still lead to the call of complete, so add a flag >> A > > === checkpatch complains === Aargh, sorry! Wrote too many Xen and Linux patches recently. I'll correct those. Juergen