Skip to content
  • Vasu Dev's avatar
    [SCSI] libfc: reduce can_queue for all FCP frame allocation failures · c46be11a
    Vasu Dev authored
    
    
    Currently can_queue is reduced only if frame alloc fails
    during fc_fcp_send_data but frame alloc can fail at several
    other places in FCP data path and can_queue needs to be
    reduced for any FCP frame alloc failure.
    
    This patch adds fc_fcp_frame_alloc for all FCP frame allocations
    and if fc_frame_alloc fails in fc_fcp_frame_alloc then reduce
    can_queue in fc_fcp_frame_alloc, this will reduce can_queue for
    all FCP frame alloc failures.
    
    This required moving fc_fcp_reduce_can_queue up, to build without
    adding its prototype. Also renamed fc_fcp_reduce_can_queue to
    fc_fcp_can_queue_ramp_down.
    
    Removes fc_fcp_reduce_can_queue calling from fc_fcp_recv since
    not needed with added fc_fcp_frame_alloc reducing can_queue.
    
    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>
    c46be11a