Merge tag 'dax-misc-for-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm...
[deliverable/linux.git] / drivers / staging / lustre / lustre / osc / osc_request.c
index df06f4f103e48464c88c16309e6d5e46396e5972..47417f88fe3c209f80cdc58cdc90f3fedd237f36 100644 (file)
@@ -2201,6 +2201,9 @@ static int osc_enqueue_interpret(const struct lu_env *env,
         */
        ldlm_lock_addref(lockh, mode);
 
+       /* Let cl_lock_state_wait fail with -ERESTARTSYS to unuse sublocks. */
+       OBD_FAIL_TIMEOUT(OBD_FAIL_LDLM_ENQUEUE_HANG, 2);
+
        /* Let CP AST to grant the lock first. */
        OBD_FAIL_TIMEOUT(OBD_FAIL_OSC_CP_ENQ_RACE, 1);
 
This page took 0.044912 seconds and 5 git commands to generate.