Whamcloud - gitweb
LU-2924 Only wake up ldlm_poold as frequently as the check interval
authorOleg Drokin <green@whamcloud.com>
Thu, 21 Mar 2013 05:43:46 +0000 (01:43 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 7 Jun 2013 03:55:45 +0000 (23:55 -0400)
commitff5b59d60a28fe22ef011ab92ff6b806b8e3c552
tree79287615a7dd6f9e039014b238d142c0e6a68e27
parent2e8cb4758f357163fc9506794fd9923f2dc78380
LU-2924 Only wake up ldlm_poold as frequently as the check interval

We used to wake up ldlm poold every second, but that's overkill,
we should just see how much time is left until next closest recalc
interval hits and sleep this much.
This will make "per-second" client grant statistic not actually
per-second, but I don't think we need any precision in that code

Change-Id: I5c3f662c9b2b9112042f58b435c4bf4558ddfab3
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/5793
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Reviewed-by: Hiroya Nozaki <nozaki.hiroya@jp.fujitsu.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_pool.c