From: "Bryant G. Ly" Date: Wed, 08 Nov 2017 21:29:27 +0000 Subject: Re: [PATCH 3/6] target: Fix quiese during transport_write_pending_qf endless loop Message-Id: <6892cffb-3734-7bd7-aa42-1d91b70ee57b@linux.vnet.ibm.com> List-Id: References: <1510115512-15617-1-git-send-email-nab@linux-iscsi.org> <1510115512-15617-4-git-send-email-nab@linux-iscsi.org> In-Reply-To: <1510115512-15617-4-git-send-email-nab@linux-iscsi.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Nicholas A. Bellinger" , target-devel Cc: linux-scsi , lkml , Mike Christie , Hannes Reinecke , Michael Cyr , Potnuri Bharat Teja , Sagi Grimberg > From: Nicholas Bellinger > > 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 > Cc: Hannes Reinecke > Cc: Bryant G. Ly > Cc: Michael Cyr > Cc: Potnuri Bharat Teja > Cc: Sagi Grimberg > Signed-off-by: Nicholas Bellinger > --- > Reviewed-by: Bryant G. Ly