X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fldlm%2Fldlm_lock.c;h=11af749d197f069f9172409e5fca3248f9fcf5f9;hb=1951f4dcd29dc7fac74b435c3fb84cb6a95328e7;hp=94445d327120e95c8c767e3bacd390c4954b9e62;hpb=7bde4a104485662d70a578c056cc39ef46b22a10;p=fs%2Flustre-release.git diff --git a/lustre/ldlm/ldlm_lock.c b/lustre/ldlm/ldlm_lock.c index 94445d3..11af749 100644 --- a/lustre/ldlm/ldlm_lock.c +++ b/lustre/ldlm/ldlm_lock.c @@ -617,7 +617,7 @@ struct ldlm_lock *__ldlm_handle2lock(const struct lustre_handle *handle, /* It's unlikely but possible that someone marked the lock as * destroyed after we did handle2object on it */ if ((flags == 0) && !ldlm_is_destroyed(lock)) { - lu_ref_add(&lock->l_reference, "handle", current); + lu_ref_add_atomic(&lock->l_reference, "handle", current); RETURN(lock); }