James Bottomley e91442b635 [SCSI] SCSI core: fix leakage of scsi_cmnd's
From: 	Alan Stern <stern@rowland.harvard.edu>

This patch (as559b) adds a new routine, scsi_unprep_request, which
gets called every place a request is requeued.  (That includes
scsi_queue_insert as well as scsi_requeue_command.)  It also changes
scsi_kill_requests to make it call __scsi_done with result equal to
DID_NO_CONNECT << 16.  (I'm not sure if it's necessary to call
scsi_init_cmd_errh here; maybe you can check on that.)  Finally, the
patch changes the return value from scsi_end_request, to avoid
returning a stale pointer in the case where the request was requeued.
Fortunately the return value is used in only place, and the change
actually simplified it.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>

Rejections fixed up and
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2005-09-09 10:44:16 -05:00
..
2005-09-07 18:44:33 -07:00
2005-07-30 09:47:53 -05:00
2005-09-07 17:17:33 -07:00
2005-09-07 16:57:20 -07:00
2005-09-06 17:52:54 -05:00
2005-09-07 16:57:17 -07:00
2005-04-16 15:20:36 -07:00
2005-09-06 22:15:20 -04:00
2005-08-30 21:46:19 -07:00
2005-06-21 18:46:32 -07:00
2005-04-16 15:20:36 -07:00