Whamcloud - gitweb
LU-5062 llite: Solve a race to access lli_has_smd in read case
[fs/lustre-release.git] / lustre / lclient / lcommon_cl.c
index 0b9e773..afda860 100644 (file)
@@ -572,6 +572,12 @@ int ccc_lock_enqueue(const struct lu_env *env,
         return 0;
 }
 
+int ccc_lock_use(const struct lu_env *env, const struct cl_lock_slice *slice)
+{
+       CLOBINVRNT(env, slice->cls_obj, ccc_object_invariant(slice->cls_obj));
+       return 0;
+}
+
 int ccc_lock_unuse(const struct lu_env *env, const struct cl_lock_slice *slice)
 {
         CLOBINVRNT(env, slice->cls_obj, ccc_object_invariant(slice->cls_obj));