Whamcloud - gitweb
LU-17426 mdt: relax same MDT file rename lock 26/53726/4
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 16 Jan 2024 01:33:22 +0000 (20:33 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 19 Jan 2024 16:41:57 +0000 (16:41 +0000)
commitd466465f9add30faec256ce7f725e0f36d4e8a66
tree9b5074e4483a542031a0a280d1c98045094271bc
parentc265e1c7b045bf1f9e5b2919c282b63086929ab6
LU-17426 mdt: relax same MDT file rename lock

Allow cross-directory rename of regular files (strictly, any
non-directory) on the same MDT without holding the BigFilesystemLock
(BFL), as file renames cannot change the directory hierarchy.

This should improve the performance for these rename operations, and
reduce contention between local MDT file renames in different parts of
the directory tree.

Add "mdt.*.enable_parallel_rename_crossdir" parameter to disable
cross-directory file renames if there is an issue with this change.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I511b392e46c46140cac6aa3ede02bfe793729f7f
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/mdt/mdt_reint.c