Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-12693

Memory leak occurs when ldlm_lock_new fails

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Lustre 2.10.7
    • Fix Version/s: None
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      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.

        Attachments

          Activity

            People

            • Assignee:
              takamura Tatsushi Takamura
              Reporter:
              takamura Tatsushi Takamura
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: