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-04-27 08:27:25 -07:00
2011-05-19 12:08:28 +02:00
2011-05-08 10:59:05 +01:00
2011-05-19 11:06:49 +02:00
2011-05-08 10:09:59 +02:00
2011-05-08 10:02:18 +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-26 13:14:49 +01:00
2011-04-26 13:14:49 +01:00
2011-04-26 13:14:49 +01:00
2011-04-22 14:41:41 -05:00
2011-05-05 16:10:08 +03:00
2011-04-27 20:04:51 +02:00
2011-05-02 09:38:35 -03:00
2011-05-08 10:02:17 +01:00
2011-05-08 11:59:50 +01: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-03 10:48:40 +02:00
2011-05-03 10:48:40 +02:00
2011-05-03 10:48:40 +02:00
2011-05-03 10:48:40 +02:00
2011-05-03 10:48:40 +02:00
2011-05-06 08:19:25 +01:00
2011-05-06 08:19:25 +01:00
2011-05-08 10:02:17 +01:00
2011-04-22 14:41:43 -05:00
2011-05-08 10:10:02 +02:00
2011-05-08 10:10:00 +02:00
2011-05-08 10:10:00 +02:00
2011-05-08 10:02:16 +01:00
2011-05-12 08:08:12 -05:00
2011-05-06 08:19:25 +01:00
2011-05-08 10:02:18 +01:00
2011-05-08 10:02:18 +01:00
2011-05-08 10:02:18 +01:00
2011-05-05 16:39:47 +03:00
2011-05-08 10:02:18 +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-05-08 10:02:17 +01:00
2011-05-08 10:02:17 +01:00
2011-05-08 10:02:18 +01: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-04-28 11:03:07 +05:30
2011-05-03 15:35:48 +02:00
2011-05-03 15:35:48 +02:00
2011-05-22 22:31:45 +01:00
2011-05-06 08:19:25 +01:00
2011-05-20 17:35:12 +02:00
2011-05-20 17:35:12 +02:00
2011-05-20 17:35:13 +02:00
2011-05-26 12:14:14 +02:00
2011-05-19 10:26:21 +02:00
2011-05-26 12:14:14 +02:00
2011-05-22 22:31:45 +01:00
2011-05-08 10:02:16 +01:00
2011-05-20 17:56:03 +02:00
2011-05-20 17:56:03 +02:00
2011-05-09 22:31:37 +02:00
2011-05-09 22:31:37 +02:00
2011-05-09 22:31:37 +02:00
2011-05-08 10:02:16 +01:00
2011-04-22 14:41:42 -05:00
2011-04-22 14:41:42 -05:00
2011-05-06 08:19:25 +01:00
2011-04-22 14:41:42 -05:00
2011-04-22 14:41:42 -05:00
2011-05-08 10:02:17 +01:00
2011-05-04 14:11:08 +02:00
2011-05-04 16:55:15 +02:00
2011-05-09 10:02:44 +02:00
2011-05-05 13:05:32 -05:00
2011-05-04 14:11:08 +02:00
2011-05-04 12:25:52 +02:00
2011-05-04 14:11:08 +02:00
2011-04-28 11:02:28 +05:30
2011-04-28 12:35:49 +05:30
2011-05-08 10:10:00 +02:00
2011-05-08 10:09:59 +02:00
2011-05-08 10:10:01 +02:00
2011-05-19 10:26:21 +02:00
2011-05-18 14:38:45 +02:00
2011-05-08 10:09:59 +02:00
2011-05-08 10:10:00 +02:00
2011-05-08 10:09:59 +02:00
2011-05-08 10:10:02 +02:00
2011-05-08 10:02:18 +01:00