scsi-disk: identify AIO callbacks more clearly
commit5fd2b563a7624959ae7f000202785a30279021f8
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 19 Jul 2015 17:15:26 +0000 (19 19:15 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Aug 2015 21:40:32 +0000 (14 23:40 +0200)
treec356aa3f80506ecd9ee8605e0a93496d98b11b99
parentd223c10453f1a7909349fd3e52a6047295d0e94f
scsi-disk: identify AIO callbacks more clearly

Functions that are not callbacks should assert that aiocb is NULL and
have a non-opaque argument (usually a pointer to SCSIDiskReq).

AIO callbacks should assert that aiocb is not NULL and take care of
calling block_acct done.  They also have an opaque argument.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-disk.c