direct-io.hg

changeset 6413:102765de794c

Fix device destruction.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 25 15:45:19 2005 +0000 (2005-08-25)
parents 3428d58a85e1
children 3b146df7f09e
files linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c	Thu Aug 25 14:41:52 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c	Thu Aug 25 15:45:19 2005 +0000
     1.3 @@ -48,10 +48,8 @@ static int netback_remove(struct xenbus_
     1.4  	if (be->watch.node)
     1.5  		unregister_xenbus_watch(&be->watch);
     1.6  	unregister_xenbus_watch(&be->backend_watch);
     1.7 -#if 0
     1.8 -	if (be->blkif)
     1.9 -		blkif_put(be->blkif);
    1.10 -#endif
    1.11 +	if (be->netif)
    1.12 +		netif_disconnect(be->netif);
    1.13  	if (be->frontpath)
    1.14  		kfree(be->frontpath);
    1.15  	kfree(be);