From: Mike Christie Date: Sat, 1 Mar 2008 00:25:19 +0000 (-0600) Subject: [SCSI] scsi_error: add target reset handler X-Git-Tag: v2.6.26-rc1~1140^2~121 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30bd7df8ced23eefec87a5cda96dc99b002ed9da;p=pandora-kernel.git [SCSI] scsi_error: add target reset handler The problem is that serveral drivers are sending a target reset from the device reset handler, and if we have multiple devices a target reset gets sent for each device when only one would be sufficient. And if we do a target reset it affects all the commands on the target so the device reset handler code only cleaning up one devices's commands makes programming the driver a little more difficult than it should be. This patch adds a target reset handler, which drivers can use to send a target reset. If successful it cleans up the commands for a devices accessed through that starget. Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed