• Nicholas Bellinger's avatar
    tcm_fc: Generate TASK_SET_FULL status for DataIN failures · b3e5fe16
    Nicholas Bellinger authored
    This patch changes ft_queue_data_in() to set SAM_STAT_TASK_SET_FULL
    status upon a lport->tt.seq_send() failure, where it will now stop
    sending subsequent DataIN, and immediately attempt to send the
    response with exception status.
    
    Sending a response with SAM_STAT_TASK_SET_FULL status is useful in
    order to signal the initiator that it should try to reduce it's
    current queue_depth, to lower the number of outstanding I/Os on
    the wire.
    
    Also, add a check to skip sending DataIN if TASK_SET_FULL status
    has already been set due to a response lport->tt.seq_send()
    failure, that has asked target-core to requeue a response.
    Reported-by: default avatarVasu Dev <vasu.dev@linux.intel.com>
    Reviewed-by: default avatarVasu Dev <vasu.dev@linux.intel.com>
    Cc: Jun Wu <jwu@stormojo.com>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    b3e5fe16
tfc_io.c 9.68 KB