Skip to content
Snippets Groups Projects
Commit 5b956f41 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

scsi-disk: introduce scsi_disk_req_check_error


Commonize all the checks for canceled requests and errors.  The next patch
will add another case to check for, in order to handle passthrough commands.

There is no semantic change here; the only nontrivial modification is in
scsi_write_do_fua, where cancellation has been checked earlier by both
callers.  Thus, the check is replaced with an assertion.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 94f8ba11
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment