On 2015-03-02 at 06:36, Fam Zheng wrote:
Signed-off-by: Fam Zheng <f...@redhat.com>
---
  blockdev.c | 92 ++++++++++++++++++++++++++++++++++++++++----------------------
  1 file changed, 59 insertions(+), 33 deletions(-)

I think I touched the same problem in my "BB and media" series, and I think I replaced the bdrv_get_aio_context() calls by blk_get_aio_context() (because it looked nicer to me to call blk_bs() only after the AIO context has been acquired).

However, at least before that series it is not possible to change the BDS attached to a BB while the BB is already in use in another AIO context, so:

Reviewed-by: Max Reitz <mre...@redhat.com>

Reply via email to