]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: Move op_blocker check from block_job_create to its caller
authorFam Zheng <famz@redhat.com>
Fri, 23 May 2014 13:29:44 +0000 (21:29 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 28 May 2014 12:28:46 +0000 (14:28 +0200)
commit628ff683034c83ce54a1ae91d898d44e34f4851a
treede3e6221be40eb9a09a4edae7b275c9b59887391
parent3718d8ab65f68de2acccbe6a315907805f54e3cc
block: Move op_blocker check from block_job_create to its caller

It makes no sense to check for "any" blocker on bs, we are here only
because of the mechanical conversion from in_use to op_blockers. Remove
it now, and let the callers check specific operation types. Backup and
mirror already have it, add checker to stream and commit.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c
blockjob.c