scsi-generic: identify AIO callbacks more clearly
commitfa0d653b06cec7b3188a733dc7394e030948018e
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)
tree03f6ec3dfe73862d44aa429f47262d4fd839261c
parent5fd2b563a7624959ae7f000202785a30279021f8
scsi-generic: identify AIO callbacks more clearly

Functions that are not callbacks should assert that aiocb is NULL and
have a SCSIGenericReq argument.

AIO callbacks should assert that aiocb is not NULL.  They also have an
opaque argument.

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