scsi-generic: do not use a stale aiocb
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 May 2011 14:53:46 +0000 (16:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 May 2011 10:14:14 +0000 (12:14 +0200)
commit0ee46eea99e138c687c251b908c804393d5c430a
tree6736ab84e93513dd92c3d511886ce1e48cfdb0dc
parent3273cc7c9a060ba33937067d48184d0f2285b8b6
scsi-generic: do not use a stale aiocb

If a request is canceled after it has been completed, scsi_cancel_io
would pass a stale aiocb to bdrv_aio_cancel.  Avoid this.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
hw/scsi-generic.c