aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2017-09-29 16:43:11 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2017-11-07 19:45:28 -0800
commit9574a497df2bbc0a676b609ce0dd24d237cee3a6 (patch)
tree73459de4d7ed7b76647ee6b4c2dc896c2f1c8941 /include/target
parenttarget: Fix caw_sem leak in transport_generic_request_failure (diff)
downloadlinux-dev-9574a497df2bbc0a676b609ce0dd24d237cee3a6.tar.xz
linux-dev-9574a497df2bbc0a676b609ce0dd24d237cee3a6.zip
target: Fix quiese during transport_write_pending_qf endless loop
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 <mchristi@redhat.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Bryant G. Ly <bryantly@linux.vnet.ibm.com> Cc: Michael Cyr <mikecyr@linux.vnet.ibm.com> Cc: Potnuri Bharat Teja <bharat@chelsio.com> Cc: Sagi Grimberg <sagi@grimberg.me> Cc: stable@vger.kernel.org # 4.11+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions