• Brian King's avatar
    [SCSI] ibmvfc: Fix target initialization failure retry handling · 10e79499
    Brian King authored
    If the ibmvfc driver is in discovery attempting to log into a target
    and it encounters an error, the command may get retried one or more
    times, depending on the error received. If the retries are
    unsuccessful such that the discovery thread gives up on discovery to
    that target, the target ends up in a state where, if SCSI core had
    previously known about the device, the host will get unblocked but the
    host will not be logged into the target, causing any commands sent to
    the target to fail. This patch fixes this so that if this occurs, the
    target is deleted such that the normal dev_loss processing can occur
    instead.
    Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
    10e79499
ibmvfc.h 17.1 KB