From 682a9b213ca3c47c4de5b0518c59c2e550299106 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 3 Aug 2011 10:49:06 +0200 Subject: 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 Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- hw/scsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/scsi.h') diff --git a/hw/scsi.h b/hw/scsi.h index 6b15bbc2cd..18d3643da1 100644 --- a/hw/scsi.h +++ b/hw/scsi.h @@ -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); -- cgit v1.2.3