Whamcloud - gitweb
LU-17276 flock: fix for lock split 05/57105/13
authorYang Sheng <ys@whamcloud.com>
Fri, 22 Nov 2024 01:52:58 +0000 (09:52 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Jan 2025 18:42:28 +0000 (18:42 +0000)
commitf785bca0a92e499493fa0702fe7c0fb05e7b51ca
tree48305aa32348b70a628b38d01f5ccfd9684ada03
parent429c66b97591c4d0f5241d4fc5d0831f562d1c58
LU-17276 flock: fix for lock split

Fix the logic in lock split case. Also add test
case to verify it works well.

Fixes: ea012dfb2a (LU-17276 ldlm: use interval tree for searching in flock)
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I9599592eba217ce79956c45c0bbb58a7f5e805d0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57105
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andriy Skulysh <andriy.skulysh@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_flock.c
lustre/tests/flocks_test.c
lustre/tests/sanity.sh