• Vasu Dev's avatar
    [SCSI] libfc: fixes unnecessary seq id jump · a104c844
    Vasu Dev authored
    In some cases seq is incremented twice causing unnecessary
    seq jump, for instance fc_exch_recv_seq_resp increments
    seq id when fc_sof_is_init is true and that is true for
    each incoming xfer ready but then fc_fcp_send_data does
    another seq increment to send data for xfer ready.
    
    This patch removes all such seq id jumps, at least it
    eliminates few calls to fc_seq_start_next using ex_lock.
    
    Also removes seq id update with incoming frame's seq id
    as this is not needed since each end (I or T) just need
    to send incremented their own seq id on each TSI from
    other end & before sending new sequence within a
    exchange.
    Signed-off-by: default avatarVasu Dev <vasu.dev@intel.com>
    Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
    a104c844
fc_exch.c 60.7 KB