summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2017-03-21 00:04:05 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2017-03-30 04:36:44 -0400
commit740372b76e7966604e0f4dd0de13135513024f0d (patch)
tree3db119e10cffc7b8430799cddec8398170211006 /drivers/target
parent6c611d18f386d37cce3afbd921568e2a895bd86e (diff)
tcmu: Allow cmd_time_out to be set to zero (disabled)
The new cmd_time_out configfs attribute for TCMU is allowed to be disabled, so go ahead and drop the tcmu_cmd_time_out_store() check. Reported-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_user.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index c6874c38a10b..6a17c78e4662 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -1196,11 +1196,6 @@ static ssize_t tcmu_cmd_time_out_store(struct config_item *item, const char *pag
1196 if (ret < 0) 1196 if (ret < 0)
1197 return ret; 1197 return ret;
1198 1198
1199 if (!val) {
1200 pr_err("Illegal value for cmd_time_out\n");
1201 return -EINVAL;
1202 }
1203
1204 udev->cmd_time_out = val * MSEC_PER_SEC; 1199 udev->cmd_time_out = val * MSEC_PER_SEC;
1205 return count; 1200 return count;
1206} 1201}