• M
    [SCSI] qla4xxx: add timeout handler · 5c656af7
    Mike Christie 提交于
    Recently dm-multipath began calling blk_abort_queue. This causes all the
    commands/request running on the path to have the timeout function called.
    If a path does go down, and the LLD returns DID_*, dm-multpiath will eventually
    get this error and begin to call the cmd timeout handler. qla4xxx currently
    does not set a timed out handler and so the default one could return
    BLK_EH_NOT_HANDLED and end up firing the scsi eh and stopping IO to all
    paths on the host when only one path is affected.
    
    For software and offload iscsi we have a timed out handler already.
    This patch adds a driver specific one to qla4xxx because there
    are some ddb->state and session->state and command completion races
    that are better handled in the LLD.
    
    This also handles the problem where if the session is down,
    we do not need the scsi eh to run until the transport code
    has tried to reconnect us.
    Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
    Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
    5c656af7
ql4_os.c 47.4 KB