]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: lustre: ldlm: reduce ldlm pool recalc window
authorVitaly Fertman <vitaly_fertman@xyratex.com>
Sat, 18 Feb 2017 21:47:10 +0000 (16:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:00 +0000 (09:17 +0100)
Reduce the sleep period from 50 seconds down to
LDLM_POOL_CLI_DEF_RECALC_PERIOD which is 10 seconds.

Signed-off-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3031
Xyratex-bug-id: MRP-395 MRP-1366 MRP-1366
Reviewed-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-by: Alexey Lyashkov <Alexey_Lyashkov@xyratex.com>
Reviewed-on: http://review.whamcloud.com/5843
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c

index 8dfb3c8e6b7a9986a81cba89b221d92d42848047..13fbbedf494576dee19e712719cd2303acbba46e 100644 (file)
@@ -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.