mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 10:53:39 +01:00
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:
parent
e6651546c2
commit
fe66e4caf4
@ -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,
|
||||
"");
|
||||
|
Loading…
Reference in New Issue
Block a user