ia64/xen-unstable

changeset 9575:b3751c780aa5

The attached patch fixes a race condition that occurs if after the
backend has been removed there are still requests pending. This patch
flushed all the pending requests.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author emellor@leeni.uk.xensource.com
date Mon Apr 03 18:32:43 2006 +0100 (2006-04-03)
parents c5a833aec2ab
children 24cc62b429f0 a97fe1ca116e
files linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c	Mon Apr 03 18:28:54 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c	Mon Apr 03 18:32:43 2006 +0100
     1.3 @@ -55,6 +55,7 @@ static int tpmback_remove(struct xenbus_
     1.4  		be->backend_watch.node = NULL;
     1.5  	}
     1.6  	if (be->tpmif) {
     1.7 +		vtpm_release_packets(be->tpmif, 0);
     1.8  		tpmif_put(be->tpmif);
     1.9  		be->tpmif = NULL;
    1.10  	}