Whamcloud - gitweb
LU-17426 mdt: relax same MDT file rename lock
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 19 Jan 2024 19:13:19 +0000 (12:13 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 29 Jan 2024 08:51:58 +0000 (08:51 +0000)
commitce01016a4a3a4f0e48345343757ddfce0a5d2ca8
treeb09c95409d7c344625730d44ff03751a918e06cc
parent23077a562048edeaa3549e332d89a008ca2619c8
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.

Lustre-change: https://review.whamcloud.com/53726
Lustre-commit: TBD (from d466465f9add30faec256ce7f725e0f36d4e8a66)

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I511b392e46c46140cac6aa3ede02bfe793729f7f
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53744
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/mdt/mdt_reint.c