diff --git a/lustre/include/obd_support.h b/lustre/include/obd_support.h index 066a3f3f938421fbb58929a0e2999d205fc13baf..cc6e5dbc1eef4686d2ebf7f9d8964e2e6f5af697 100644 --- a/lustre/include/obd_support.h +++ b/lustre/include/obd_support.h @@ -53,8 +53,9 @@ extern int obd_race_state; extern unsigned int obd_alloc_fail_rate; /* Timeout definitions */ -#define OBD_TIMEOUT_DEFAULT 100 -#define LDLM_TIMEOUT_DEFAULT 20 +#define OBD_TIMEOUT_DEFAULT 100 +#define LDLM_TIMEOUT_DEFAULT 20 +#define MDS_LDLM_TIMEOUT_DEFAULT 6 #ifdef CRAY_XT3 #define OBD_RECOVERY_MAX_TIME (obd_timeout * 18) /* b13079 */ #endif diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 7d70520ad6483d29b8636b1ea2eb03ad5c14dfaa..d62d9b4e010db2c17baefc41aad84f5cdd8dfe33 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -2087,8 +2087,11 @@ static int mds_setup(struct obd_device *obd, obd_count len, void *buf) obd->obd_replayable ? "enabled" : "disabled"); } + /* Reduce the initial timeout on an MDS because it doesn't need such + * a long timeout as an OST does. Adaptive timeouts will adjust this + * value appropriately. */ if (ldlm_timeout == LDLM_TIMEOUT_DEFAULT) - ldlm_timeout = 6; + ldlm_timeout = MDS_LDLM_TIMEOUT_DEFAULT; RETURN(0);