[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Added a hotplug KOBJ_OFFLINE call, for symmetry with the ONLINE call used here.
# HG changeset patch # User emellor@xxxxxxxxxxxxxxxxxxxxxx # Node ID fb42478203b9453d5b7bb88d88753627c9e67be1 # Parent 17b98e15bf7821053992246c59701cd4dfd9553f Added a hotplug KOBJ_OFFLINE call, for symmetry with the ONLINE call used here. We need a hook to be able to close down the device properly, but the REMOVE event is no good because we don't get the script and vif environment variables set in that case. Closes bug #417. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> diff -r 17b98e15bf78 -r fb42478203b9 linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Wed Nov 23 12:58:44 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Wed Nov 23 18:45:57 2005 @@ -216,13 +216,14 @@ break; case XenbusStateClosed: - device_unregister(&be->dev->dev); + kobject_hotplug(&dev->dev.kobj, KOBJ_OFFLINE); + device_unregister(&dev->dev); break; case XenbusStateUnknown: case XenbusStateInitWait: default: - xenbus_dev_fatal(be->dev, -EINVAL, "saw state %d at frontend", + xenbus_dev_fatal(dev, -EINVAL, "saw state %d at frontend", frontend_state); break; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |