• Nicholas Bellinger's avatar
    target: Fix delayed Task Aborted Status (TAS) handling bug · 29f4c090
    Nicholas Bellinger authored
    This patch fixes a bug in delayed Task Aborted Status (TAS) handling,
    where transport_send_task_abort() was not returning for the case
    when the se_tfo->write_pending() callback indicated that last fabric
    specific WRITE PDU had not yet been received.
    
    It also adds an explicit cmd->scsi_status = SAM_STAT_TASK_ABORTED
    assignment within transport_check_aborted_status() to avoid the case
    where se_tfo->queue_status() is called when the SAM_STAT_TASK_ABORTED
    assignment + ->queue_status() in transport_send_task_abort() does not
    occur once SCF_SENT_DELAYED_TAS has been set.
    
    Cc: <stable@vger.kernel.org> #3.2+
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    29f4c090
target_core_transport.c 73.7 KB