]> git.itanic.dy.fi Git - linux-stable/commit
xen: fix is_disconnected_device/exists_disconnected_device
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2009 10:27:37 +0000 (12:27 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:04:55 +0000 (15:04 -0800)
commitaf70ddfa0a21d625f1b7ed3389ce30eeed0896c3
tree8673b47eb2c292c806ba4c193580a3e6c36a053d
parent1dc51f1054ff6444540c3a3e45aad6657d130562
xen: fix is_disconnected_device/exists_disconnected_device

commit c6e1971139be1342902873181f3b80a979bfb33b upstream.

The logic of is_disconnected_device/exists_disconnected_device is wrong
in that they are used to test whether a device is trying to connect (i.e.
connecting).  For this reason the patch fixes them to not consider a
Closing or Closed device to be connecting.  At the same time the patch
also renames the functions according to what they really do; you could
say a closed device is "disconnected" (the old name), but not "connecting"
(the new name).

This patch is a backport of changeset 909 from the Xenbits tree.

Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/xen/xenbus/xenbus_probe.c