From 0adebb70a48c12ce6d537174c9470b5f9f918e3d Mon Sep 17 00:00:00 2001 From: Andrew Perepechko Date: Sun, 11 Dec 2022 14:22:49 +0300 Subject: [PATCH] LU-16381 ofd: fix soft_sync_limit lprocfs write handler soft_sync_limit_store() must return the size of the input buffer in the success case, otherwise the writer may loop forever. Change-Id: I2d926eaba7062c495a56c6ee32e1b82e08df63ce Signed-off-by: Andrew Perepechko Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49362 Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin Tested-by: jenkins Tested-by: Maloo --- lustre/ofd/lproc_ofd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ofd/lproc_ofd.c b/lustre/ofd/lproc_ofd.c index ae1ca11..74020a6 100644 --- a/lustre/ofd/lproc_ofd.c +++ b/lustre/ofd/lproc_ofd.c @@ -584,7 +584,7 @@ static ssize_t soft_sync_limit_store(struct kobject *kobj, return rc; ofd->ofd_soft_sync_limit = val; - return 0; + return count; } LUSTRE_RW_ATTR(soft_sync_limit); -- 1.8.3.1