X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_request.c;h=2ba487bd8218f90cb10100a96df016a98fd1fe91;hp=0f2212b605a037133e200b5fdf6ee5cd9949ea92;hb=716ea58abaa87687dbf2d4cd1b524dd6b4aac45d;hpb=c2cfae97beb618ace5fab829db2524891142116d diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 0f2212b..2ba487b 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -3227,6 +3227,9 @@ static int osc_enqueue_interpret(const struct lu_env *env, * osc_enqueue_fini(). */ ldlm_lock_addref(&handle, mode); + /* Let CP AST to grant the lock first. */ + OBD_FAIL_TIMEOUT(OBD_FAIL_OSC_CP_ENQ_RACE, 1); + /* Complete obtaining the lock procedure. */ rc = ldlm_cli_enqueue_fini(aa->oa_exp, req, aa->oa_ei->ei_type, 1, mode, aa->oa_flags, aa->oa_lvb,