From: James Bottomley Date: Mon, 25 Oct 2010 20:53:41 +0000 (-0500) Subject: [SCSI] fix id computation in scsi_eh_target_reset() X-Git-Tag: v2.6.38-rc1~27^2~123 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98db519573e805f9f7e988fb5661da951fcb16b1;p=pandora-kernel.git [SCSI] fix id computation in scsi_eh_target_reset() The current code in scsi_eh_target_reset() has an off by one error that actually sends spurious extra resets. Since there's no real need to reset the targets in numerical order, simply chunk up the command recovery list doing target resets and pulling matching targets out of the list (that also makes the loop O(N) instead of O(N^2). [mike christie found and fixed a list_splice -> list_splice_init problem] Reported-by: Hillf Danton Signed-off-by: James Bottomley --- Reading git-diff-tree failed