提交 89c63a8e 编写于 作者: J Jens Axboe

Merge branch 'stable/for-jens' of...

Merge branch 'stable/for-jens' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen into for-linus
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#define DRV_PFX "xen-blkback:" #define DRV_PFX "xen-blkback:"
#define DPRINTK(fmt, args...) \ #define DPRINTK(fmt, args...) \
pr_debug(DRV_PFX "(%s:%d) " fmt ".\n", \ pr_debug(DRV_PFX "(%s:%d) " fmt ".\n", \
__func__, __LINE__, ##args) __func__, __LINE__, ##args)
......
...@@ -590,7 +590,7 @@ static void frontend_changed(struct xenbus_device *dev, ...@@ -590,7 +590,7 @@ static void frontend_changed(struct xenbus_device *dev,
/* /*
* Enforce precondition before potential leak point. * Enforce precondition before potential leak point.
* blkif_disconnect() is idempotent. * xen_blkif_disconnect() is idempotent.
*/ */
xen_blkif_disconnect(be->blkif); xen_blkif_disconnect(be->blkif);
...@@ -601,17 +601,17 @@ static void frontend_changed(struct xenbus_device *dev, ...@@ -601,17 +601,17 @@ static void frontend_changed(struct xenbus_device *dev,
break; break;
case XenbusStateClosing: case XenbusStateClosing:
xen_blkif_disconnect(be->blkif);
xenbus_switch_state(dev, XenbusStateClosing); xenbus_switch_state(dev, XenbusStateClosing);
break; break;
case XenbusStateClosed: case XenbusStateClosed:
xen_blkif_disconnect(be->blkif);
xenbus_switch_state(dev, XenbusStateClosed); xenbus_switch_state(dev, XenbusStateClosed);
if (xenbus_dev_is_online(dev)) if (xenbus_dev_is_online(dev))
break; break;
/* fall through if not online */ /* fall through if not online */
case XenbusStateUnknown: case XenbusStateUnknown:
/* implies blkif_disconnect() via blkback_remove() */ /* implies xen_blkif_disconnect() via xen_blkbk_remove() */
device_unregister(&dev->dev); device_unregister(&dev->dev);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册