« Previous | Next » 

Revision ad2d30f7

IDad2d30f79d3b0812f02c741be2189796b788d6d7

Added by Paolo Bonzini over 10 years ago

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 <>
Cc: Christoph Hellwig <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences