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

mgc_fs_setup() can leak cl_mgc_mutex reference

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      It is possible for mgc_fs_setup() to leak a reference to cl_mgc_mutex if local_oid_storage_init() fails:

              /* The mgc fs exclusion mutex. Only one fs can be setup at a time. */
              mutex_lock(&cli->cl_mgc_mutex); 
              
              /* Setup the configs dir */
              fid.f_seq = FID_SEQ_LOCAL_NAME;
              fid.f_oid = 1;
              fid.f_ver = 0;
              rc = local_oid_storage_init(env, lsi->lsi_dt_dev, &fid,
                                          &cli->cl_mgc_los);
              if (rc)
                      RETURN(rc);
      

      Attachments

        Issue Links

          Activity

            [LU-15038] mgc_fs_setup() can leak cl_mgc_mutex reference
            pjones Peter Jones added a comment -

            Landed for 2.15

            pjones Peter Jones added a comment - Landed for 2.15

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45063/
            Subject: LU-15038 mgc: release cl_mgc_mutex on error
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 7cf10b90d62256aa4d177486ff13bd61dfb9a5ff

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45063/ Subject: LU-15038 mgc: release cl_mgc_mutex on error Project: fs/lustre-release Branch: master Current Patch Set: Commit: 7cf10b90d62256aa4d177486ff13bd61dfb9a5ff

            "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45063
            Subject: LU-15038 mgc: release cl_mgc_mutex on error
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 1389ac82ad805b411bf4b063fb9469cf8c496ed2

            gerrit Gerrit Updater added a comment - "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45063 Subject: LU-15038 mgc: release cl_mgc_mutex on error Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 1389ac82ad805b411bf4b063fb9469cf8c496ed2

            People

              adilger Andreas Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: