scsi-disk: do not complete requests early for rerror/werror=ignore
When requested to ignore errors, just do nothing and let the request complete normally. This means that the request will be accounted correctly. This is what commit40dce4ee61
("scsi-disk: fix rerror/werror=ignore", 2018-10-19) was supposed to do: Fixes:40dce4ee61
("scsi-disk: fix rerror/werror=ignore", 2018-10-19) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f95f61c2c9
commit
424740def9
@ -253,8 +253,7 @@ static bool scsi_handle_rw_error(SCSIDiskReq *r, int error, bool acct_failed)
|
||||
|
||||
blk_error_action(s->qdev.conf.blk, action, is_read, error);
|
||||
if (action == BLOCK_ERROR_ACTION_IGNORE) {
|
||||
scsi_req_complete(&r->req, 0);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (action == BLOCK_ERROR_ACTION_STOP) {
|
||||
|
Loading…
Reference in New Issue
Block a user