On Mon 26 Oct 2015 09:39:05 PM CET, Max Reitz <mre...@redhat.com> wrote:
> +void blk_remove_bs(BlockBackend *blk)
> +{
> +    blk_update_root_state(blk);
> +
> +    blk->bs->blk = NULL;
> +    bdrv_unref(blk->bs);
> +    blk->bs = NULL;
> +}

I cannot think of any example out of the blue but I wonder if removing
the reference to the BDS (and possibly destroying it) while blk->bs is
still pointing to it could be a source of problems.

Berto

Reply via email to