From: Li Xi Date: Mon, 2 Feb 2015 02:52:02 +0000 (-0500) Subject: staging/lustre/ldlm: high load because of negative timeout X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d2c7b309d17a5609a5d4ede628d16828262ca00;p=pandora-kernel.git 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 Reviewed-on: http://review.whamcloud.com/11227 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5415 Reviewed-by: Dmitry Eremin Reviewed-by: Bobi Jam Reviewed-by: Lai Siyao Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed