summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-twl6040.c
diff options
context:
space:
mode:
authorJiang Yi <jiangyilism@gmail.com>2017-06-25 12:28:50 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-06 23:11:32 -0700
commit1d6ef276594a781686058802996e09c8550fd767 (patch)
tree8b16ce1b714d58ac623249d33fb908c343bacf51 /drivers/clk/clk-twl6040.c
parent8a45885c1514cdae2ee64b5ac03ffc00a1a8a9d7 (diff)
downloadlinux-1d6ef276594a781686058802996e09c8550fd767.tar.bz2
target: Fix COMPARE_AND_WRITE caw_sem leak during se_cmd quiesce
This patch addresses a COMPARE_AND_WRITE se_device->caw_sem leak, that would be triggered during normal se_cmd shutdown or abort via __transport_wait_for_tasks(). This would occur because target_complete_cmd() would catch this early and do complete_all(&cmd->t_transport_stop_comp), but since target_complete_ok_work() or target_complete_failure_work() are never called to invoke se_cmd->transport_complete_callback(), the COMPARE_AND_WRITE specific callbacks never release caw_sem. To address this special case, go ahead and release caw_sem directly from target_complete_cmd(). (Remove '&& success' from check, to release caw_sem regardless of scsi_status - nab) Signed-off-by: Jiang Yi <jiangyilism@gmail.com> Cc: <stable@vger.kernel.org> # 3.14+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/clk/clk-twl6040.c')
0 files changed, 0 insertions, 0 deletions