[LU-14490] extra getattr RPC if striped directory as subdirectory mount Created: 05/Mar/21 Updated: 04/Mar/22 Resolved: 22/Mar/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.12.7, Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Lai Siyao | Assignee: | Lai Siyao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
Striped directory as subdirectory mount may not be able to cache LOOKUP lock for ROOT, and will cause extra getattr RPC for each file access. This is a bug in lmv_intent_lookup(), which replaces fid1 with stripe FID which "/" is mapped to by hash, while for striped directory, fid2 is master object FID, if they are not located on the same MDT, server will treat it as remote object, and won't reply LOOKUP lock back. Note, even if this is fixed, user should avoid use remote directory (either plain or striped directory) as subdirectory mount, because remote object can't fetch LOOKUP lock. |
| Comments |
| Comment by Gerrit Updater [ 05/Mar/21 ] |
|
Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41893 |
| Comment by Gerrit Updater [ 13/Mar/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41893/ |
| Comment by Gerrit Updater [ 16/Mar/21 ] |
|
Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/42046 |
| Comment by Gerrit Updater [ 22/Mar/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/42046/ |
| Comment by Peter Jones [ 22/Mar/21 ] |
|
Landed for 2.15 and 2.12.7 |