提交 9105bfc0 编写于 作者: A Andy Grover 提交者: Nicholas Bellinger

target: Do not return 0 from aptpl and alua configfs store functions

Here are some more instances where we are returning 0 from a configfs
store function, the unintended result of which is likely infinite retries
from userspace.
Signed-off-by: NAndy Grover <agrover@redhat.com>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 bc1a7d6a
...@@ -1590,9 +1590,9 @@ static ssize_t target_core_dev_pr_store_attr_res_aptpl_metadata( ...@@ -1590,9 +1590,9 @@ static ssize_t target_core_dev_pr_store_attr_res_aptpl_metadata(
u8 type = 0; u8 type = 0;
if (dev->transport->transport_flags & TRANSPORT_FLAG_PASSTHROUGH) if (dev->transport->transport_flags & TRANSPORT_FLAG_PASSTHROUGH)
return 0; return count;
if (dev->dev_reservation_flags & DRF_SPC2_RESERVATIONS) if (dev->dev_reservation_flags & DRF_SPC2_RESERVATIONS)
return 0; return count;
if (dev->export_count) { if (dev->export_count) {
pr_debug("Unable to process APTPL metadata while" pr_debug("Unable to process APTPL metadata while"
...@@ -1985,7 +1985,7 @@ static ssize_t target_core_store_alua_lu_gp( ...@@ -1985,7 +1985,7 @@ static ssize_t target_core_store_alua_lu_gp(
lu_gp_mem = dev->dev_alua_lu_gp_mem; lu_gp_mem = dev->dev_alua_lu_gp_mem;
if (!lu_gp_mem) if (!lu_gp_mem)
return 0; return count;
if (count > LU_GROUP_NAME_BUF) { if (count > LU_GROUP_NAME_BUF) {
pr_err("ALUA LU Group Alias too large!\n"); pr_err("ALUA LU Group Alias too large!\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册