commit | 5fd2b563a7624959ae7f000202785a30279021f8 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Sun Jul 19 19:15:26 2015 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Aug 14 23:40:32 2015 +0200 |
tree | c356aa3f80506ecd9ee8605e0a93496d98b11b99 | |
parent | d223c10453f1a7909349fd3e52a6047295d0e94f [diff] |
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>