]> xenbits.xen.org Git - xenclient/kernel.git/commit
Watch the online node in the backend area, as well as the state node fake-GET_IDLUN-scsi-ioctl
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:02 +0000 (12:06 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:02 +0000 (12:06 +0000)
commite39088e3f74699cc1dec97665b1a06c8955006b7
tree43360e7389716b16bd9de92d1655a85c07dc0411
parent7581c03b142d071555f08ec0585ec140a04c60b3
Watch the online node in the backend area, as well as the state node
in the frontend area, and fire the frontend state changed watch
whenever it changes.  This allows us to catch the case where a device
shuts down in a domU and then gets xm detach'd from in dom0.

Otherwise, the backend doesn't shut down correctly, since online was
set when the frontend shut down and we don't get another kick when it
becomes unset.
drivers/xen/xenbus/xenbus_probe.c
include/xen/xenbus.h