scsi: move request lists to QTAILQ.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Nov 2009 14:33:49 +0000 (15:33 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:36 +0000 (09:41 -0600)
commitd73b0c9a87e868a8d19e31e97f13f95597ab9f1f
treeb0ac0266b94e7024c904973dddf84b51ca14b4ec
parenta859883951aba6f07e08928e2ea3b3ac9a2860d7
scsi: move request lists to QTAILQ.

Changes:
 * Move from open-coded lists to QTAILQ macros.
 * Move the struct elements to the common data structures
   (SCSIDevice + SCSIRequest).
 * Drop free request pools.
 * Fix request cleanup in the destroy callback.

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