|
@@ -997,7 +997,7 @@ static int blkif_release(struct inode *inode, struct file *filep)
|
|
struct xenbus_device *dev = info->xbdev;
|
|
struct xenbus_device *dev = info->xbdev;
|
|
enum xenbus_state state = xenbus_read_driver_state(dev->otherend);
|
|
enum xenbus_state state = xenbus_read_driver_state(dev->otherend);
|
|
|
|
|
|
- if (state == XenbusStateClosing)
|
|
|
|
|
|
+ if (state == XenbusStateClosing && info->is_ready)
|
|
blkfront_closing(dev);
|
|
blkfront_closing(dev);
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|