It might be related, but dom_lock=trylock behaviors chnaged in recent codes?
I'm testing on 2.15.0-RC3.
Dom lock mode "trylock" which is default.
Create new directory and configured dom for all < 1MB files.
Create 10000 files on client c01
locks were taken for 10000 files which is expected.
Another client ec02 issue "stats" to all 10000 files which client ec01 created above.
all locks for 10000 files on ec01 were canceled which is also expected.
But, why it requires 3 x locks against 10000 files for "stats"?
This was same scenarios of what I original tested in LU-12325, but different results and behaviors..
When I tested before, second client took same number of locks of target files for "stat". But, now it takes 3x..
"Mikhail Pershin <mpershin@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51262
Subject: LU-12325 mdc: reduce DoM lock mode on file close
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 306444123a484729bf6cb435b1c2fb84b6170158