From: Anthony PERARD Subject: Re: [PATCH v2 2/2] xen: drain submit queue in xen-usb before removing device Date: Tue, 2 Aug 2016 16:26:44 +0100 Message-ID: <20160802152644.GU1835@perard.uk.xensource.com> References: <1470140044-16492-1-git-send-email-jgross@suse.com> <1470140044-16492-3-git-send-email-jgross@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Content-Disposition: inline In-Reply-To: <1470140044-16492-3-git-send-email-jgross@suse.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: Juergen Gross Cc: xen-devel@lists.xensource.com, sstabellini@kernel.org, qemu-devel@nongnu.org, kraxel@redhat.com List-Id: xen-devel@lists.xenproject.org On Tue, Aug 02, 2016 at 02:14:04PM +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 > to the request indicating it should be just dropped on complete. > > Signed-off-by: Juergen Gross Acked-by: Anthony PERARD -- Anthony PERARD