提交 46861cdd 编写于 作者: N Nicholas Bellinger

target: Don't force session reset if queue_depth does not change

Keeping in the idempotent nature of target_core_fabric_configfs.c,
if a queue_depth value is set and it's the same as the existing
value, don't attempt to force session reinstatement.
Reported-by: NRaghu Krishnamurthy <rk@datera.io>
Cc: Raghu Krishnamurthy <rk@datera.io>
Tested-by: NGary Guo <ghg@datera.io>
Cc: Gary Guo <ghg@datera.io>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 197b806a
...@@ -397,6 +397,13 @@ int core_tpg_set_initiator_node_queue_depth( ...@@ -397,6 +397,13 @@ int core_tpg_set_initiator_node_queue_depth(
{ {
struct se_portal_group *tpg = acl->se_tpg; struct se_portal_group *tpg = acl->se_tpg;
/*
* Allow the setting of se_node_acl queue_depth to be idempotent,
* and not force a session shutdown event if the value is not
* changing.
*/
if (acl->queue_depth == queue_depth)
return 0;
/* /*
* User has requested to change the queue depth for a Initiator Node. * User has requested to change the queue depth for a Initiator Node.
* Change the value in the Node's struct se_node_acl, and call * Change the value in the Node's struct se_node_acl, and call
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册