diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-08-03 10:49:06 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-12 08:27:00 -0500 |
commit | 682a9b213ca3c47c4de5b0518c59c2e550299106 (patch) | |
tree | 3bb4e98871f5fe44a1a3ccb93288548fde22a53b /hw/scsi.h | |
parent | 05751d3ff7d3c12d1468002886a71453491481ce (diff) | |
download | qemu-682a9b213ca3c47c4de5b0518c59c2e550299106.tar.gz qemu-682a9b213ca3c47c4de5b0518c59c2e550299106.tar.bz2 qemu-682a9b213ca3c47c4de5b0518c59c2e550299106.zip |
scsi: pass status when completing
A small improvement in the SCSI request API. Pass the status
at the time the request is completed, so that we can assert that
no request is completed twice. This would have detected the
problem fixed in the previous patch.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r-- | hw/scsi.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -153,7 +153,7 @@ int scsi_req_parse(SCSIRequest *req, uint8_t *buf); void scsi_req_print(SCSIRequest *req); void scsi_req_continue(SCSIRequest *req); void scsi_req_data(SCSIRequest *req, int len); -void scsi_req_complete(SCSIRequest *req); +void scsi_req_complete(SCSIRequest *req, int status); uint8_t *scsi_req_get_buf(SCSIRequest *req); int scsi_req_get_sense(SCSIRequest *req, uint8_t *buf, int len); void scsi_req_abort(SCSIRequest *req, int status); |