summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2023-03-18 20:56:15 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2023-03-24 17:32:23 -0400
commit6d256bee602b131bd4fbc92863b6a1210bcf6325 (patch)
treebf88ed77e94ca2ffb23210cefdb644245c7dae87 /drivers/infiniband
parent8e288be8606ad87c1726618eacfb8fbd3ab4b806 (diff)
downloadlinux-stable-6d256bee602b131bd4fbc92863b6a1210bcf6325.tar.gz
linux-stable-6d256bee602b131bd4fbc92863b6a1210bcf6325.tar.bz2
linux-stable-6d256bee602b131bd4fbc92863b6a1210bcf6325.zip
scsi: target: iscsit: isert: Alloc per conn cmd counter
This has iscsit allocate a per conn cmd counter and converts iscsit/isert to use it instead of the per session one. Signed-off-by: Mike Christie <michael.christie@oracle.com> Link: https://lore.kernel.org/r/20230319015620.96006-5-michael.christie@oracle.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index 75404885cf98..f290cd49698e 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -2506,8 +2506,8 @@ isert_wait4cmds(struct iscsit_conn *conn)
isert_info("iscsit_conn %p\n", conn);
if (conn->sess) {
- target_stop_session(conn->sess->se_sess);
- target_wait_for_sess_cmds(conn->sess->se_sess);
+ target_stop_cmd_counter(conn->cmd_cnt);
+ target_wait_for_cmds(conn->cmd_cnt);
}
}