Whamcloud - gitweb
b=22520 set the thread to be uninterrupt before add to waitq
[fs/lustre-release.git] / lustre / lov / lovsub_object.c
index 3774df9..d1057f3 100644 (file)
@@ -85,7 +85,9 @@ static void lovsub_object_free(const struct lu_env *env, struct lu_object *obj)
         if (lov) {
                 LASSERT(lov->lo_type == LLT_RAID0);
                 LASSERT(lov->u.raid0.lo_sub[los->lso_index] == los);
+                cfs_spin_lock(&lov->u.raid0.lo_sub_lock);
                 lov->u.raid0.lo_sub[los->lso_index] = NULL;
+                cfs_spin_unlock(&lov->u.raid0.lo_sub_lock);
         }
 
         lu_object_fini(obj);