Skip to content
Snippets Groups Projects
Commit 9e29c4de authored by Bobi Jam's avatar Bobi Jam
Browse files

Branch HEAD

b=16205
i=johann, sheng.yang

use a macro defining ldlm timeout value on MDS.
parent c93596af
No related branches found
No related tags found
No related merge requests found
...@@ -75,8 +75,9 @@ int obd_alloc_fail(const void *ptr, const char *name, const char *type, ...@@ -75,8 +75,9 @@ int obd_alloc_fail(const void *ptr, const char *name, const char *type,
size_t size, const char *file, int line); size_t size, const char *file, int line);
/* Timeout definitions */ /* Timeout definitions */
#define OBD_TIMEOUT_DEFAULT 100 #define OBD_TIMEOUT_DEFAULT 100
#define LDLM_TIMEOUT_DEFAULT 20 #define LDLM_TIMEOUT_DEFAULT 20
#define MDS_LDLM_TIMEOUT_DEFAULT 6
/* Time to wait for all clients to reconnect during recovery */ /* Time to wait for all clients to reconnect during recovery */
/* Should be very conservative; must catch the first reconnect after reboot */ /* Should be very conservative; must catch the first reconnect after reboot */
#define OBD_RECOVERY_FACTOR (3) /* times obd_timeout */ #define OBD_RECOVERY_FACTOR (3) /* times obd_timeout */
......
...@@ -4008,8 +4008,10 @@ static int mdt_init0(const struct lu_env *env, struct mdt_device *m, ...@@ -4008,8 +4008,10 @@ static int mdt_init0(const struct lu_env *env, struct mdt_device *m,
mdt_init_capa_ctxt(env, m); mdt_init_capa_ctxt(env, m);
/* we use a shorter ldlm_timeout on MDS for keep bumping on
* might-be slow processing OST */
if (ldlm_timeout == LDLM_TIMEOUT_DEFAULT) if (ldlm_timeout == LDLM_TIMEOUT_DEFAULT)
ldlm_timeout = 6; ldlm_timeout = MDS_LDLM_TIMEOUT_DEFAULT;
RETURN(0); RETURN(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment