Paolo Bonzini 40f16dd127 scsi-generic: Remove bogus double complete
scsi-generic scsi_read_complete() should not -both- call the client
complete callback with SCSI_REASON_DATA -and- call
scsi_command_complete().  The former will cause the client to queue a
new read or write request, while the later will free the request data
structure, thus causing the new read or write request to use a
freed/stale structure when it completes.

This patch fixes the bug, fixing a crash with scsi-generic & RHEL5.5
installer.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2011-05-26 12:14:14 +02:00
..
2011-05-08 10:59:05 +01:00
2011-04-22 14:41:41 -05:00
2011-05-06 08:19:25 +01:00
2011-05-06 08:19:25 +01:00
2011-04-22 14:41:43 -05:00
2011-04-22 14:41:41 -05:00
2011-05-05 16:10:08 +03:00
2011-04-22 14:41:43 -05:00
2011-04-22 14:41:43 -05:00
2011-04-22 14:41:43 -05:00
2011-05-06 08:19:25 +01:00
2011-05-06 08:19:25 +01:00
2011-04-22 14:41:43 -05:00
2011-05-06 08:19:25 +01:00
2011-04-22 14:41:43 -05:00
2011-05-22 22:31:45 +01:00
2011-04-22 14:41:41 -05:00
2011-04-22 14:41:42 -05:00
2011-05-09 22:31:37 +02:00
2011-05-12 00:24:52 +02:00
2011-05-12 00:24:52 +02:00
2011-04-22 14:41:43 -05:00
2011-04-22 14:41:41 -05:00
2011-05-03 15:35:48 +02:00
2011-05-06 08:19:25 +01:00
2011-05-26 12:14:14 +02:00
2011-05-06 08:19:25 +01:00
2011-04-22 14:41:42 -05:00
2011-05-04 16:55:15 +02:00
2011-05-09 10:02:44 +02:00
2011-05-04 12:25:52 +02:00
2011-05-04 14:11:08 +02:00
2011-05-08 10:10:00 +02:00