summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-11-30 22:37:44 +0100
committerBjorn Helgaas <bhelgaas@google.com>2012-11-30 22:37:44 +0100
commitbe5cd530bd23ef3e00dcb4998e151de9fdd1a104 (patch)
tree4371f337fa0679890787893da5e084172130f259 /drivers/pci
parentMerge branch 'pci/don-sriov' into next (diff)
parentxen-pcifront: Handle backend CLOSED without CLOSING (diff)
downloadlinux-be5cd530bd23ef3e00dcb4998e151de9fdd1a104.tar.xz
linux-be5cd530bd23ef3e00dcb4998e151de9fdd1a104.zip
Merge branch 'pci/misc' into next
* pci/misc: xen-pcifront: Handle backend CLOSED without CLOSING
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/xen-pcifront.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c
index 0aab85a51559..a0c73120b262 100644
--- a/drivers/pci/xen-pcifront.c
+++ b/drivers/pci/xen-pcifront.c
@@ -1068,13 +1068,16 @@ static void __init_refok pcifront_backend_changed(struct xenbus_device *xdev,
case XenbusStateInitialising:
case XenbusStateInitWait:
case XenbusStateInitialised:
- case XenbusStateClosed:
break;
case XenbusStateConnected:
pcifront_try_connect(pdev);
break;
+ case XenbusStateClosed:
+ if (xdev->state == XenbusStateClosed)
+ break;
+ /* Missed the backend's CLOSING state -- fallthrough */
case XenbusStateClosing:
dev_warn(&xdev->dev, "backend going away!\n");
pcifront_try_disconnect(pdev);