[LU-7716] Do not do subdir check if source and target are in the same directory Created: 27/Jan/16  Updated: 04/Feb/16  Resolved: 04/Feb/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: Lustre 2.8.0

Type: Bug Priority: Blocker
Reporter: Di Wang Assignee: Di Wang
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-7372 replay-dual test_26: test failed to r... Resolved
is related to LU-7725 Error unpacking OUT message Resolved
Severity: 3
Rank (Obsolete): 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);


 Comments   
Comment by Gerrit Updater [ 27/Jan/16 ]

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

Comment by Gerrit Updater [ 04/Feb/16 ]

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

Comment by Joseph Gmitter (Inactive) [ 04/Feb/16 ]

Landed for 2.8

Generated at Sat Feb 10 02:11:18 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.