scsi: move SCSIRequest management to common code.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Nov 2009 14:33:50 +0000 (15:33 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:36 +0000 (09:41 -0600)
commit25c37f4de0a4b41ec0df9ce8763824d07780bf07
tree87543c67167a00d0d2d1b60e940b6afc6c41a3fc
parentd73b0c9a87e868a8d19e31e97f13f95597ab9f1f
scsi: move SCSIRequest management to common code.

Create generic functions to allocate, find and release SCSIRequest
structs.  Make scsi-disk and scsi-generic use them.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/scsi-bus.c
hw/scsi-disk.c
hw/scsi-generic.c
hw/scsi.h