From: Andrew Perepechko Date: Sun, 11 Dec 2022 11:22:49 +0000 (+0300) Subject: LU-16381 ofd: fix soft_sync_limit lprocfs write handler X-Git-Tag: 2.15.55~85 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0adebb70a48c12ce6d537174c9470b5f9f918e3d;p=fs%2Flustre-release.git 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 --- 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);