Whamcloud - gitweb
LU-13101 llite: eviction during ll_open_cleanup()
[fs/lustre-release.git] / lustre / llite / namei.c
index 5628adf..43265ab 100644 (file)
@@ -721,8 +721,10 @@ static int ll_lookup_it_finish(struct ptlrpc_request *request,
        GOTO(out, rc = 0);
 
 out:
-       if (rc != 0 && it->it_op & IT_OPEN)
+       if (rc != 0 && it->it_op & IT_OPEN) {
+               ll_intent_drop_lock(it);
                ll_open_cleanup((*de)->d_sb, request);
+       }
 
        return rc;
 }