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

object leak in mdt_rename_sanity()

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.6.0
    • Lustre 2.6.0
    • 3
    • 14373

    Description

      This would be addressed by Vitaly's http://review.whamcloud.com/#/c/10484/

      static int mdt_rename_sanity(struct mdt_thread_info *info,
                                   const struct lu_fid *dir_fid,
                                   const struct lu_fid *fid)
      {
              struct mdt_object *dst;
              struct lu_fid dst_fid = *dir_fid;
              int rc = 0;
              ENTRY;
      
              /* If the source and target are in the same directory, they can not               
               * be parent/child relationship, so subdir check is not needed */
              if (lu_fid_eq(dir_fid, fid))
                      return 0;
      
              do {
                      LASSERT(fid_is_sane(&dst_fid));
                      dst = mdt_object_find(info->mti_env, info->mti_mdt, &dst_fid);
                      if (!IS_ERR(dst)) {
                              /* XXX: this object might not be protected by LDLM lock
                               * here, (see mdt_rename_parents_lock), but LOHA_EXISTS
                               * will not change once it is being set, but LFSCK might
                               * change this later.(LU-5069) */
                              if (!mdt_object_exists(dst))
                                      RETURN(-ESTALE);
      

      Attachments

        Issue Links

          Activity

            [LU-5178] object leak in mdt_rename_sanity()
            jhammond John Hammond made changes -
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            jhammond John Hammond made changes -
            Fix Version/s New: Lustre 2.6.0 [ 10595 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
            jhammond John Hammond added a comment - Fixed by http://review.whamcloud.com/#/c/10484/ .
            jhammond John Hammond made changes -
            Resolution Original: Duplicate [ 3 ]
            Status Original: Closed [ 6 ] New: Reopened [ 4 ]
            jhammond John Hammond added a comment -

            This is not a duplicate of LU-4725. The two issues have completely different descriptions. If the patch from LU-4725 lands and fixes this issue then fine close this as fixed. If that patch doesn't land then we still have this issue.

            jhammond John Hammond added a comment - This is not a duplicate of LU-4725 . The two issues have completely different descriptions. If the patch from LU-4725 lands and fixes this issue then fine close this as fixed. If that patch doesn't land then we still have this issue.
            jlevi Jodi Levi (Inactive) made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Open [ 1 ] New: Closed [ 6 ]
            jlevi Jodi Levi (Inactive) made changes -
            Link New: This issue is duplicated by LU-4725 [ LU-4725 ]
            jhammond John Hammond made changes -
            Link New: This issue is related to LU-5177 [ LU-5177 ]
            jhammond John Hammond made changes -
            Link New: This issue is related to LU-4725 [ LU-4725 ]
            jhammond John Hammond created issue -

            People

              wc-triage WC Triage
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: