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

Memory leak occurs when ldlm_lock_new fails

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.

      Attachments

        Activity

          [LU-12693] Memory leak occurs when ldlm_lock_new fails

          Tatsushi Takamura (takamr.tatsushi@jp.fujitsu.com) uploaded a new patch: https://review.whamcloud.com/35916
          Subject: LU-12693 ldlm: memory leak occurs when ldlm_lock_new fails
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 99be72e46c27523f4138c39d19d93ff1ff68a1cb

          gerrit Gerrit Updater added a comment - Tatsushi Takamura (takamr.tatsushi@jp.fujitsu.com) uploaded a new patch: https://review.whamcloud.com/35916 Subject: LU-12693 ldlm: memory leak occurs when ldlm_lock_new fails Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 99be72e46c27523f4138c39d19d93ff1ff68a1cb

          People

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

            Dates

              Created:
              Updated: