• Chad Dupuis's avatar
    [SCSI] qla2xxx: Do not query FC statistics during chip reset. · 8fbfe2d2
    Chad Dupuis authored
    During a chip reset, the mailbox call to get FC statistics from the ISP will
    not work resulting in needless mailbox accesses and errors printing out:
    
    qla2xxx [0000:05:00.0]-00af:11: Performing ISP error recovery - ha=ffff881fad044800.
    qla2xxx [0000:05:00.0]-1020:11: **** Failed mbx[0]=4001, mb[1]=4953, mb[2]=5020, mb[3]=b100, cmd=6d ****.
    qla2xxx [0000:05:00.0]-1020:11: **** Failed mbx[0]=4001, mb[1]=4953, mb[2]=5020, mb[3]=b100, cmd=6d ****.
    qla2xxx [0000:05:00.0]-1020:11: **** Failed mbx[0]=4001, mb[1]=4953, mb[2]=5020, mb[3]=b100, cmd=6d ****.
    qla2xxx [0000:05:00.0]-1020:11: **** Failed mbx[0]=4001, mb[1]=4953, mb[2]=5020, mb[3]=b100, cmd=6d ****.
    qla2xxx [0000:05:00.0]-1020:11: **** Failed mbx[0]=4001, mb[1]=4953, mb[2]=5020, mb[3]=b100, cmd=6d ****.
    
    To prevent this, check for a chip reset when an application queries for FC
    stats and return immediately if a chip reset is occurring.
    Signed-off-by: default avatarChad Dupuis <chad.dupuis@qlogic.com>
    Signed-off-by: default avatarSaurav Kashyap <saurav.kashyap@qlogic.com>
    Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
    8fbfe2d2
qla_attr.c 56 KB