: Reenable core_tpg_del_initiator_node_acl() and core_tpg_set_initiator_node_queue_depth()
PATCH 6/8 : Reenable core_tpg_del_initiator_node_acl() and core_tpg_set_initiator_node_queue_depth()
Quoted 1 line
From
dac2365863d6554c39da256c7b1a0705de90f5d6Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <[email protected]>
Date: Sat, 20 Dec 2008 14:01:35 -0800
Subject: [PATCH 6/8] [Target_Core_Mod]: Reenable core_tpg_del_initiator_node_acl() and core_tpg_set_initiator_node_queue_depth()
This patch reenables the above logic by using newly added function pointers struct target_core_fabric_ops->shutdown_session() and
struct target_core_fabric_ops->close_session() while removing an se_node_acl_t or changing se_node_acl_t->queue_depth with core_set_queue_depth_for_node().
Signed-off-by Nicholas A. Bellinger <[email protected]>
--- drivers/lio-core/target_core_fabric_ops.h | 5 + drivers/lio-core/target_core_tpg.c | 115 ++++++++++++++--------------- 2 files changed, 61 insertions(+), 59 deletions(-)
drivers/lio-core/target_core_fabric_ops.h +5 -0
@@ -11,6 +11,11 @@ struct target_core_fabric_ops {void (*release_cmd_to_pool)(struct se_cmd_s *);void (*release_cmd_direct)(struct se_cmd_s *);int (*dev_del_lun)(struct se_portal_group_s *,__u32 ); +/* +* Called with spin_lock_bh(se_portal_group_t->session_lock held. +*/ +int (*shutdown_session)(struct se_session_s *); +void (*close_session)(struct se_session_s *);void (*stop_session)(struct se_session_s *,int ,int );void (*fall_back_to_erl0)(struct se_session_s *);int (*write_pending)(struct se_cmd_s *);
drivers/lio-core/target_core_tpg.c +56 -59
214 lines not on this page · raw message
Signature · 1 line
1.5.4.1