Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcm_qla2xxx: Fix tcm_qla2xxx_do_rsp check condition cmd_kref leak
This patch fixes a bug in tcm_qla2xxx_do_rsp() where the direct call to transport_send_check_condition_and_sense() is leaking se_cmd->cmd_kref, and causing hangs during session shutdown. Change this to transport_generic_request_failure() so that target-core makes the proper callbacks into TFO->check_stop_free() -> tcm_qla2xxx_check_stop_free() -> target_put_sess_cmd() Reported-by: Roland Dreier <roland@purestorage.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
- Loading branch information