Whamcloud - gitweb
LU-13101 llite: eviction during ll_open_cleanup()
[fs/lustre-release.git] / lustre / llite / llite_lib.c
index d7557fa..e8e240b 100644 (file)
@@ -2610,8 +2610,10 @@ out:
        /* cleanup will be done if necessary */
        md_free_lustre_md(sbi->ll_md_exp, &md);
 
-       if (rc != 0 && it != NULL && it->it_op & IT_OPEN)
+       if (rc != 0 && it != NULL && it->it_op & IT_OPEN) {
+               ll_intent_drop_lock(it);
                ll_open_cleanup(sb != NULL ? sb : (*inode)->i_sb, req);
+       }
 
        return rc;
 }