diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-10-25 12:53:34 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-10-28 19:25:52 +0200 |
commit | c7bae6a75b5b43d560f5b18386447842f9bfec37 (patch) | |
tree | f7ae6100fb19a7d1eb63358bba0afceec403786d /main-loop.c | |
parent | e88c591d63ed1bc8520f4f276bebd77c22e4ec72 (diff) |
scsi-disk: bump SCSIRequest reference count until aio completion runs
In some cases a request may be canceled before the completion callback
runs. Keep a reference to the request between starting an AIO operation
and the corresponding scsi_req_cancel or scsi_*_complete.
When a request has to be retried, the request can be dropped because
scsi_dma_restart_bh only looks at requests that are enqueued. As such,
they always have at least a reference.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'main-loop.c')
0 files changed, 0 insertions, 0 deletions