scsi: always call notifier on async cancellation
commit36896bffd1330e09ee615f8c19d9e07520320a02
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Dec 2015 18:33:44 +0000 (16 19:33 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Dec 2015 16:33:49 +0000 (17 17:33 +0100)
treea7c5ff8299ee071de7226594cc4804e1f8056970
parent8aad35f678799e9ddf11201a619aefb7c0f18dec
scsi: always call notifier on async cancellation

This was found by code inspection.  If the request is cancelled twice,
the notifier is never called on the second cancellation request,
and hence for example a TMF might never finish.

All the calls in scsi_req_cancel_async are idempotent, so the change
is safe.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1450290827-30508-2-git-send-email-pbonzini@redhat.com>
hw/scsi/scsi-bus.c