Skip to content

dcache: Translating dentry into pathname without taking rename_lock

Waiman Long linux-fsdevel lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 23 repliesIn review
  2. v31 patch 16 repliesSuperseded
  3. v21 patch 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch14 repliesSuperseded

Changes in v4 from the cover letter

- Extract the begin and end blocks of the rename_lock sequence number check into helper functions to make the code easier to read.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1dcache: Translating dentry into pathname without taking rename_lockfs/dcache.c+133 -6323 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/1] dcache: Translating dentry into pathname without taking rename_lock

Change History

v3->v4:
- Extract the begin and end blocks of the rename_lock sequence number check into helper functions to make the code easier to read.

v2->v3:
- Simplify prepend_name() to blindly copy the dname over until it reaches a null byte or the specified length leaving the sequence check to handle error case.

v1->v2:
- Check for internal vs external dname, taking d_lock only for external dname for safety.
- Replace memchr() by a byte-by-byte checking for loop.
- Try lockless dentry to pathname conversion 3 times before falling back to taking the rename_lock to prevent live-lock.
- Make code re-factoring suggested by George Spelvin.

Waiman Long (1):
dcache: Translating dentry into pathname without taking rename_lock

 fs/dcache.c |  196 ++++++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 133 insertions(+), 63 deletions(-)