Whamcloud - gitweb
LU-16381 ofd: fix soft_sync_limit lprocfs write handler 62/49362/8
authorAndrew Perepechko <andrew.perepechko@hpe.com>
Sun, 11 Dec 2022 11:22:49 +0000 (14:22 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 13 Mar 2023 06:12:08 +0000 (06:12 +0000)
commit0adebb70a48c12ce6d537174c9470b5f9f918e3d
tree18a3ee2d395be75bc21050f68dc9708ee88a7e4f
parenta5b515fa5c6ad1935ecfa673eb5b08152a327527
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 <andrew.perepechko@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49362
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ofd/lproc_ofd.c