|
@@ -1904,13 +1904,16 @@ static void blkback_changed(struct xenbus_device *dev,
|
|
|
case XenbusStateReconfiguring:
|
|
|
case XenbusStateReconfigured:
|
|
|
case XenbusStateUnknown:
|
|
|
- case XenbusStateClosed:
|
|
|
break;
|
|
|
|
|
|
case XenbusStateConnected:
|
|
|
blkfront_connect(info);
|
|
|
break;
|
|
|
|
|
|
+ case XenbusStateClosed:
|
|
|
+ if (dev->state == XenbusStateClosed)
|
|
|
+ break;
|
|
|
+ /* Missed the backend's Closing state -- fallthrough */
|
|
|
case XenbusStateClosing:
|
|
|
blkfront_closing(info);
|
|
|
break;
|