> From: Nicholas Bellinger <n...@linux-iscsi.org>
>
> This patch fixes a potential end-less loop during QUEUE_FULL,
> where cmd->se_tfo->write_pending() callback fails repeatedly
> but __transport_wait_for_tasks() has already been invoked to
> quiese the outstanding se_cmd descriptor.
>
> To address this bug, this patch adds a CMD_T_STOP|CMD_T_ABORTED
> check within transport_write_pending_qf() and invokes the
> existing se_cmd->t_transport_stop_comp to signal quiese
> completion back to __transport_wait_for_tasks().
>
> Cc: Mike Christie <mchri...@redhat.com>
> Cc: Hannes Reinecke <h...@suse.com>
> Cc: Bryant G. Ly <bryan...@linux.vnet.ibm.com>
> Cc: Michael Cyr <mike...@linux.vnet.ibm.com>
> Cc: Potnuri Bharat Teja <bha...@chelsio.com>
> Cc: Sagi Grimberg <s...@grimberg.me>
> Signed-off-by: Nicholas Bellinger <n...@linux-iscsi.org>
> ---
>
Reviewed-by: Bryant G. Ly <bryan...@linux.vnet.ibm.com>


Reply via email to