]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
lsi: have lsi_request for the whole life time of the request.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 6 Jan 2010 16:08:01 +0000 (17:08 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 18 Apr 2010 20:01:41 +0000 (22:01 +0200)
commitd40ba77ebf0097ff45e3d2ae6fc915560c626e91
treec3cad116dd217ecc29e15c62584f8552f53cca2d
parenta8c46d182c90873dce5a9eaf97a6c0413751edc7
lsi: have lsi_request for the whole life time of the request.

Right now lsi_request is allocated when a request is queued and released
when a request is unqueued.  With this patch applied the lsi_request is
kept for the whole lifetime of the scsi request.

Rationale: We can use it for per-request data then.  The patch does that
already for the request tag.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit af12ac9880eacdd79d49a11d5672df7170afb38f)
hw/lsi53c895a.c