Whamcloud - gitweb
LU-17426 mdt: relax same MDT file rename lock 26/53726/5
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 16 Jan 2024 01:33:22 +0000 (20:33 -0500)
committerOleg Drokin <green@whamcloud.com>
Sun, 4 Feb 2024 08:26:16 +0000 (08:26 +0000)
commite66dd92775a547d755846349bfed97d831194f70
treecc6b2f8a142018c1e90d93a1b74ce5d5e4361218
parent77d01c485e00468b2ef6e3eb64544d30c049a411
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
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53726
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/mdt/mdt_reint.c