]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target: Make TFO->check_stop_free return free status
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 2 Nov 2011 10:33:16 +0000 (03:33 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 2 Nov 2011 15:58:30 +0000 (15:58 +0000)
commit88dd9e26d6d3e743f9c7e4562b94b2ad3c2994d3
tree452154b4137170de74d4445c5fcbbf62ce2f04fd
parent5a4c8666c6d576f076a7c6824589cdbb984c0f84
target: Make TFO->check_stop_free return free status

This patch converts target_core_fabric_ops->check_stop_free() usage in
transport_cmd_check_stop() and associated fabric module usage to
return '1' when the passed se_cmd has been released directly within
->check_stop_free(), or return '0' when the passed se_cmd has not
been released.

This addresses an issue where transport_cmd_finish_abort() ->
transport_cmd_check_stop_to_fabric() was leaking descriptors during
LUN_RESET for modules using ->check_stop_free(), but not directly
releasing se_cmd in all cases.

Cc: stable@kernel.org
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
drivers/target/loopback/tcm_loop.c
drivers/target/target_core_transport.c
drivers/target/tcm_fc/tcm_fc.h
drivers/target/tcm_fc/tfc_cmd.c
include/target/target_core_fabric_ops.h