summaryrefslogtreecommitdiff
path: root/pflib.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-04-18 16:01:56 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2011-05-26 12:14:15 +0200
commitad2d30f79d3b0812f02c741be2189796b788d6d7 (patch)
tree44cd67f6ef5577c71dda6feefa4474be621d0e8b /pflib.c
parentd33e0ce213cec82a059f5e37667231200eb77325 (diff)
downloadqemu-ad2d30f79d3b0812f02c741be2189796b788d6d7.tar.gz
qemu-ad2d30f79d3b0812f02c741be2189796b788d6d7.tar.bz2
qemu-ad2d30f79d3b0812f02c741be2189796b788d6d7.zip
scsi: reference-count requests
With the next patch, a device may hold SCSIRequest for an indefinite time. Split a rather big patch, and protect against access errors, by reference counting them. There is some ugliness in scsi_send_command implementation due to the need to unref the request when it fails. This will go away with the next patches, which move the unref'ing to the devices. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'pflib.c')
0 files changed, 0 insertions, 0 deletions