diff options
author | James Bottomley <James.Bottomley@suse.de> | 2010-10-25 15:53:41 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 12:23:56 -0600 |
commit | 98db519573e805f9f7e988fb5661da951fcb16b1 (patch) | |
tree | 8186c195ae339439f45109110afea40fbf833363 /drivers/scsi/lpfc/lpfc_els.c | |
parent | 110def851fc823bb1a4584cb6308e30e5ffb3e05 (diff) | |
download | lwn-98db519573e805f9f7e988fb5661da951fcb16b1.tar.gz lwn-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_els.c')
0 files changed, 0 insertions, 0 deletions