block: add block_job_sleep_ns
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2012 14:51:45 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 10 May 2012 08:32:12 +0000 (10:32 +0200)
commit4513eafe928ff47486f4167c28d364c72b5ff7e3
tree8976dece72550042799603af6c51c8835fcf0087
parent0ac9377d043e03350b1ff8e21b927598c02fc7fb
block: add block_job_sleep_ns

This function abstracts the pretty complex semantics of the "busy"
member of BlockJob.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/stream.c
block_int.h