Whamcloud - gitweb
LU-18214 ldlm: change flock deadlock detection 19/56319/7
authorYang Sheng <ys@whamcloud.com>
Tue, 10 Sep 2024 16:14:21 +0000 (00:14 +0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 24 Nov 2024 06:01:24 +0000 (06:01 +0000)
commitc2e6fa41aac428222770a4fc2826567a74a6dbc6
treedfced69cc2f3b2c768c6715c85e52f77a014b57e
parentdd2fbd684a239caf03ac9da16da92b09fb4f58c0
LU-18214 ldlm: change flock deadlock detection

The flock deadlock detection code thought request lock
same as blocking lock is a bug. In fact, this is a case
of cycling chain. So we should treat it as a deadlock
case. Also clean up the reprocess code.

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: Icf0df4ac281c2cdb6cc57cb79db137d39ecef9e6
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56319
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_flock.c