scsi: target: Pass in cmd counter to use during cmd setup
authorMike Christie <michael.christie@oracle.com>
Sun, 19 Mar 2023 01:56:14 +0000 (20:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:19 +0000 (23:03 +0900)
commitb7ca8ded37318bf402ac5de8eeb5a58af7deca5c
tree332a224b7ab530e7ca7c31e2eead88f7a113e503
parent741443436ed80f930888a4bfbf80af8162926c3f
scsi: target: Pass in cmd counter to use during cmd setup

[ Upstream commit 8e288be8606ad87c1726618eacfb8fbd3ab4b806 ]

Allow target_get_sess_cmd() users to pass in the cmd counter they want to
use. Right now we pass in the session's cmd counter but in a subsequent
commit iSCSI will switch from per session to per conn.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230319015620.96006-4-michael.christie@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: 395cee83d02d ("scsi: target: iscsit: Stop/wait on cmds during conn close")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/target_core_transport.c
drivers/target/target_core_xcopy.c
drivers/usb/gadget/function/f_tcm.c
include/target/target_core_fabric.h