summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_sli.c
diff options
context:
space:
mode:
authorJames Bottomley2010-10-25 22:53:41 +0200
committerJames Bottomley2010-12-21 19:23:56 +0100
commit98db519573e805f9f7e988fb5661da951fcb16b1 (patch)
tree8186c195ae339439f45109110afea40fbf833363 /drivers/scsi/lpfc/lpfc_sli.c
parent[SCSI] ipr: fix mailbox register definition and add a delay before reading (diff)
downloadkernel-qcow2-linux-98db519573e805f9f7e988fb5661da951fcb16b1.tar.gz
kernel-qcow2-linux-98db519573e805f9f7e988fb5661da951fcb16b1.tar.xz
kernel-qcow2-linux-98db519573e805f9f7e988fb5661da951fcb16b1.zip
[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<dhillf@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
0 files changed, 0 insertions, 0 deletions