On 2013年11月26日 01:11, Paolo Bonzini wrote:
Il 22/11/2013 06:24, Fam Zheng ha scritto:@@ -41,13 +41,11 @@ void *block_job_create(const BlockJobDriver *driver, BlockDriverState *bs, { BlockJob *job;- if (bs->job || bdrv_in_use(bs)) { + if (bs->job) { error_set(errp, QERR_DEVICE_IN_USE, bdrv_get_device_name(bs)); return NULL; } bdrv_ref(bs);Why is this check disappearing?
Because this patch is moving this check to callers, and changing it to op blocker check.
Fam