]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
target: Propigate up ->cmd_kref put return via transport_generic_free_cmd
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 31 May 2013 07:46:11 +0000 (00:46 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 31 May 2013 08:21:23 +0000 (01:21 -0700)
commitd5ddad4168348337d98d6b8f156a3892de444411
tree8d9151a21c95709ccc0b58cd60a61beba8248459
parentcea4dcfdad926a27a18e188720efe0f2c9403456
target: Propigate up ->cmd_kref put return via transport_generic_free_cmd

Go ahead and propigate up the ->cmd_kref put return value from
target_put_sess_cmd() -> transport_release_cmd() -> transport_put_cmd()
-> transport_generic_free_cmd().

This is useful for certain fabrics when determining the active I/O
shutdown case with SCF_ACK_KREF where a final target_put_sess_cmd()
is still required by the caller.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c
include/target/target_core_fabric.h