aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Fertman <[email protected]>2017-02-18 16:47:10 -0500
committerGreg Kroah-Hartman <[email protected]>2017-03-06 09:17:00 +0100
commitdc06bc210cf4e81a8cdab4cb0bbb4ce0d3155462 (patch)
treecff4f652882b2f5829fefa31a866681573441a9a
parent99df22b584f2afce1653d2cefe87ec26ce056b23 (diff)
staging: lustre: ldlm: reduce ldlm pool recalc window
Reduce the sleep period from 50 seconds down to LDLM_POOL_CLI_DEF_RECALC_PERIOD which is 10 seconds. Signed-off-by: Vitaly Fertman <[email protected]> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3031 Xyratex-bug-id: MRP-395 MRP-1366 MRP-1366 Reviewed-by: Andriy Skulysh <[email protected]> Reviewed-by: Alexey Lyashkov <[email protected]> Reviewed-on: http://review.whamcloud.com/5843 Reviewed-by: James Simmons <[email protected]> Reviewed-by: Andreas Dilger <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: James Simmons <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/lustre/lustre/ldlm/ldlm_pool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
index 8dfb3c8e6b7a..13fbbedf4945 100644
--- a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
+++ b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
@@ -900,8 +900,9 @@ static int ldlm_pools_recalc(enum ldlm_side client)
{
struct ldlm_namespace *ns;
struct ldlm_namespace *ns_old = NULL;
+ /* seconds of sleep if no active namespaces */
+ int time = LDLM_POOL_CLI_DEF_RECALC_PERIOD;
int nr;
- int time = 50; /* seconds of sleep if no active namespaces */
/*
* Recalc at least ldlm_namespace_nr_read(client) namespaces.