[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: |
|
||||||||||||
| 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 |
| Comment by Gerrit Updater [ 04/Feb/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18172/ |
| Comment by Joseph Gmitter (Inactive) [ 04/Feb/16 ] |
|
Landed for 2.8 |