staging/lustre/ldlm: high load because of negative timeout
staging/lustre/ldlm: high load because of negative timeout

When the time of LRU resizing exceeds waiting period of
recalculation, the ldlm daemon will keep on resizing without any
interval of rest. That will cause high CPU load.

This patch fixes the problem by setting the recalculation timestamp
after LRU resizing finishes rather than before it. What is more, an
interval of one second is enforced between each recalculation.

Signed-off-by: Li Xi <851d64d5999db0eb96e316fa1cf38023249a530a@ddn.com>
Reviewed-on: http://review.whamcloud.com/11227
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5415
Reviewed-by: Dmitry Eremin <ea1e3c6fa6979cfec6a3ebd98bd4636046bd897e@intel.com>
Reviewed-by: Bobi Jam <5e451d3f5f035e14a83905a8d5b052763fc3f4cb@gmail.com>
Reviewed-by: Lai Siyao <3de0ff1f562be7153cd883e1be3e88580ec32e8b@intel.com>
Signed-off-by: Oleg Drokin <65b2ca07820e940f66d8901813c729ec10a548f5@intel.com>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs