commit | c0777fe18b08c3a6de0c53325d6b9b75ebb9de9a | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Fri Aug 23 09:14:49 2013 +0800 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Sep 06 15:25:08 2013 +0200 |
tree | 75fc7f7797752dae9210d8d89c2f5faca1db5189 | |
parent | 8442cfd0346de849264494c5adedbac12553867e [diff] |
xen_disk: simplify blk_disconnect with refcnt We call bdrv_attach_dev when initializing whether or not bs is created locally, so call bdrv_detach_dev and let the refcnt handle the lifecycle. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>