Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Lustre 2.10.7
-
None
-
3
-
9223372036854775807
Description
Memory leak occurs when ldlm_lock_new fails in ldlm_lock_create.
The flow is below.
ldlm_lock_create res = ldlm_resouce_new atomic_set(&res->lr_refcount, 1); ldlm_lock_new //if failed RETURN(ERR_PTR(-ENOMEM)); // ldlm_resource_putref should be executed
res->lr_refcount remains and the node can not be umount.