[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/3] migration: block migration when streaming b
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 3/3] migration: block migration when streaming block jobs are running. |
Date: |
Mon, 23 Jul 2012 11:43:54 +0100 |
On Mon, Jul 23, 2012 at 11:17 AM, Benoît Canet <address@hidden> wrote:
> Would
>
> int bdrv_are_busy(void)
> {
> BlockDriverState *bs;
>
> QTAILQ_FOREACH(bs, &bdrv_states, list) {
> if (bs->job || bdrv_in_use(bs)) {
> return -EBUSY;
> }
> }
>
> return 0;
> }
>
> be more acceptable ?
Looks fine to me.
Stefan