rangelock: Disable cheat mode by default

Cheat mode is incompatible with code which locks multiple ranges in the
same vnode, with at least one range being write-locked.  This can arise
in kern_copy_file_range().  Until that's handled somehow, avoid the
problem to make the fusefs tests stable.

PR:		281073
Fixes:		9ef425e560 ("rangelocks: add fast cheating mode")
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D46457
This commit is contained in:
Mark Johnston 2024-08-27 20:31:25 +00:00
parent e6651546c2
commit fe66e4caf4

View File

@ -66,7 +66,7 @@
* trylocks are same as normal locks but do not drain.
*/
static int rangelock_cheat = 1;
static int rangelock_cheat = 0;
SYSCTL_INT(_debug, OID_AUTO, rangelock_cheat, CTLFLAG_RWTUN,
&rangelock_cheat, 0,
"");