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

Do not do subdir check if source and target are in the same directory

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.8.0
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      In mdt_reint_rename_internal(), we do not need do is_subdir check if source and target are in the same directory.

           
             /* Check if @mtgtdir is subdir of @mold, before locking child
               * to avoid reverse locking. */
              rc = mdt_is_subdir(info, mtgtdir, old_fid);  <--- no need check if mtgtdir == msrcdir
              if (rc)
                      GOTO(out_put_old, rc);
      

      Attachments

        Issue Links

          Activity

            [LU-7716] Do not do subdir check if source and target are in the same directory

            Landed for 2.8

            jgmitter Joseph Gmitter (Inactive) added a comment - Landed for 2.8

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18172/
            Subject: LU-7716 mdt: No is_subdir check for same dir rename
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: a1345691437eaf8d3e20878722be5f28cab7fb98

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18172/ Subject: LU-7716 mdt: No is_subdir check for same dir rename Project: fs/lustre-release Branch: master Current Patch Set: Commit: a1345691437eaf8d3e20878722be5f28cab7fb98

            wangdi (di.wang@intel.com) uploaded a new patch: http://review.whamcloud.com/18172
            Subject: LU-7716 mdt: No is_subdir check for same dir rename
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 46265e0f7e9b952594bcc2978a6045f848f9858e

            gerrit Gerrit Updater added a comment - wangdi (di.wang@intel.com) uploaded a new patch: http://review.whamcloud.com/18172 Subject: LU-7716 mdt: No is_subdir check for same dir rename Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 46265e0f7e9b952594bcc2978a6045f848f9858e

            People

              di.wang Di Wang (Inactive)
              di.wang Di Wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: