• James Bottomley's avatar
    [SCSI] fix id computation in scsi_eh_target_reset() · 98db5195
    James Bottomley authored
    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: default avatarJames Bottomley <James.Bottomley@suse.de>
    98db5195
scsi_error.c 56.5 KB