Subject: CVS commit: [netbsd-3-0] src/sys/arch/xen/xen
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <tron@netbsd.org>
List: source-changes
Date: 01/11/2006 17:03:43
Module Name:	src
Committed By:	tron
Date:		Wed Jan 11 17:03:43 UTC 2006

Modified Files:
	src/sys/arch/xen/xen [netbsd-3-0]: xbdback.c

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #1106):
	sys/arch/xen/xen/xbdback.c: revision 1.16 via patch
When disconnecting a device, we have to wait for pending I/O before releasing
the ressources (this can lead to a dom0 kernel crash when destroying a domain
with active I/O going). For this, add a refcount to struct xbdback_instance,
and defer CMSG_BLKIF_BE_DISCONNECT reply until refcount is back to 0 (which
means all queued buffers have completed).
Based on patch sent by Jed Davis on port-xen.


To generate a diff of this commit:
cvs rdiff -r1.4.2.9 -r1.4.2.9.2.1 src/sys/arch/xen/xen/xbdback.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.