]> Git Repo - qemu.git/commit
scsi: fix cancellation when I/O was completed but DMA was not.
authorPaolo Bonzini <[email protected]>
Mon, 12 Jan 2015 10:47:30 +0000 (11:47 +0100)
committerPaolo Bonzini <[email protected]>
Wed, 14 Jan 2015 09:38:57 +0000 (10:38 +0100)
commit488eef2f1d16c97cf7f9ebf644ecafa1ea1e9acc
tree865c0433e068b5ba5d020da67ba6ef53bdfb8f71
parentc88f68ec3ce54ebc5da13d07d6512689c4e9be30
scsi: fix cancellation when I/O was completed but DMA was not.

Commit d577646 (scsi: Introduce scsi_req_cancel_complete, 2014-09-25)
was supposed to have no semantic change, but it missed a case.  When
r->aiocb has already been NULLed, but DMA was not complete and the
SCSI layer was waiting for scsi_req_continue, after the patch the
SCSI layer will not call the .cancel callback of SCSIBusInfo.

Fixes: d5776465ee9a55815792efa34d79de240f4ffd99
Cc: [email protected]
Reported-by: Dr. David Alan Gilbert <[email protected]>
Tested-by: Dr. David Alan Gilbert <[email protected]>
Reviewed-by: Fam Zheng <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/scsi/scsi-bus.c
This page took 0.022566 seconds and 4 git commands to generate.