Skip to content

Commit

Permalink
blockjob: separate monitor and blockjob APIs
Browse files Browse the repository at this point in the history
We have two different headers for block job operations, blockjob.h
and blockjob_int.h.  The former contains APIs called by the monitor,
the latter contains APIs called by the block job drivers and the
block layer itself.

Keep the two APIs separate in the blockjob.c file too.  This will
be useful when transitioning away from the AioContext lock, because
there will be locking policies for the two categories, too---the
monitor will have to call new block_job_lock/unlock APIs, while blockjob
APIs will take care of this for the users.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20170508141310.8674-6-pbonzini@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
  • Loading branch information
bonzini authored and codyprime committed May 24, 2017
1 parent f321dcb commit 88691b3
Showing 1 changed file with 205 additions and 185 deletions.

0 comments on commit 88691b3

Please sign in to comment.