• Brian King's avatar
    [SCSI] ibmvfc: Fixup host state during reinit · 915be024
    Brian King authored
    If an ELS is received while the virtual fibre channel adapter is going
    through its discovery, a flag is set which causes discovery to get
    re-driven. However, the hosts's state does not get set back to
    IBMVFC_INITIALIZING and scsi_block_requests does not get called again,
    which can result in queuecommand ops getting sent during
    discovery. This should not occur and may cause problems. One example
    is that we may no longer be logged into the target we send the command
    to, resulting in a failure which should not have occurred.
    Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
    915be024
ibmvfc.c 111 KB