diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-10 16:27:51 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-28 15:11:17 +0100 |
commit | 9e55d58806feedca9341a63243304fbbeaac741d (patch) | |
tree | 2dc05966e5fa457f00bf2db5567c0e910ff1cc3c /qtest.c | |
parent | 75f19f8c3006970632303b49043b075dc4fe922e (diff) | |
download | qemu-9e55d58806feedca9341a63243304fbbeaac741d.zip |
megasas: clean up and fix request completion/cancellation
megasas_command_cancel is a callback; it should report the abort in
the frame, not try another abort! Compare for instance with
mptsas_request_cancelled.
So extract the common bits for request completion in a new function
megasas_complete_command, call it from both the .complete and .cancel
callbacks, and remove duplicate pieces from the DCMD path.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20161110152751.4267-2-pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qtest.c')
0 files changed, 0 insertions, 0 deletions