From nobody Tue Aug 27 20:38:06 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WtfWM1sT5z5JtM4; Tue, 27 Aug 2024 20:38:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WtfWL6Mq9z4sgK; Tue, 27 Aug 2024 20:38:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724791087; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8uo5YsJ/qQZlLNQyU4W6W1I7oNlIYSuW0FfPKz7zbQk=; b=CkgTndCNcP8XFfb6Tx/eUkzSmzns5czz14/zq/oyK9dXrhU2n8BQxaeYhPBsXuJzXQqkv3 Xovb/QcBDhLSJMK8Zrhz6a3yjSfpfgm8DKOgObLIm8qsGIwDb/4GQxTBNBuJpQ57tlcbgJ rkInHRZztQol5wRER0I27rMn7xh1NpC56/R4Qp6lO/RkPdFxTfTaLS+kU+BVB7FqK5U8rd sN0USMYg+8nIixV+JSHu6ETmL+1WsV+9DU4kT6TU/GsvIkfO+Ps4HvdQ+QpOuQxr99GlJa MFRst++2E6o+MzeuddlIQOvuGKmtbu8oxmZ3sw9rMb5M87v8uy8AZ3HXw9uMPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724791087; a=rsa-sha256; cv=none; b=MR54lxHOCp6pvFvw5ZLZwaVjUMZgpcbUSAqDHwap+k2iUfZ3JH58uuEcrhF4HVYvNcH5WK UQHCr7sZGvFeZuQBKr1FTj1u1AqVo2nt/O2sTkS2Bpv7crg9otJ0CIdZdwzivSaRiR6o1d YwDXnLtvO2FkOZ9kncv4WHrsZQoBvE9E/lv9o/m+yQlDTlSl5ILdDYtdGrJYvtcz+r4XpI uKrpgcyvMGHGaUHANcu96igF/00rbIjtYFtGShjGa+YDocDfZNkIA8sDnjrVCFsNTrpVky A8zpgHEY8Bb1M92Z8YLPGbDvfoVubaYR5+1Wbj6POKrBMMDyXEPnqj/UHIajgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724791087; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8uo5YsJ/qQZlLNQyU4W6W1I7oNlIYSuW0FfPKz7zbQk=; b=otXmjc23DXBRNdpkfAgad02E00FLkfxptbmuYAmBKl9iL3in+Du5HqDKKJIQzFN+QqGMLI IVXS7vDYVCIT4lUD9EOQxgTDSOWVnzG8IQ3+l8UVPzuvKpkJk1Q0TUpfNMSs4dRkVwYXYW P9CckaM0mAK0BP4117qU4j4riprKqDXsOgcsgihvJ5fXboalf9U4y6k4mNzFj86/fSSiNC +C0Im8wFq920aHYVd+POBzuhWGL6CMvqqbSTcYvX9UMlJu8BKFO/sR91uNKHCuALBShfeq H5wpEA0UtaZ7+ENMf+bVcU+C+jIAnv0ZVufoHm7LJzO1w+jxwEvaXTu04F0rOg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WtfWL60NBz14ql; Tue, 27 Aug 2024 20:38:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47RKc6TD049074; Tue, 27 Aug 2024 20:38:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47RKc6Ga049071; Tue, 27 Aug 2024 20:38:06 GMT (envelope-from git) Date: Tue, 27 Aug 2024 20:38:06 GMT Message-Id: <202408272038.47RKc6Ga049071@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: fe66e4caf456 - main - rangelock: Disable cheat mode by default List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fe66e4caf4561ee3349ad7a29cc9976108c3b04f Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=fe66e4caf4561ee3349ad7a29cc9976108c3b04f commit fe66e4caf4561ee3349ad7a29cc9976108c3b04f Author: Mark Johnston AuthorDate: 2024-08-27 20:31:25 +0000 Commit: Mark Johnston CommitDate: 2024-08-27 20:36:31 +0000 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: 9ef425e560a9 ("rangelocks: add fast cheating mode") Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D46457 --- sys/kern/kern_rangelock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_rangelock.c b/sys/kern/kern_rangelock.c index 14163dd1c782..38449f71a8b7 100644 --- a/sys/kern/kern_rangelock.c +++ b/sys/kern/kern_rangelock.c @@ -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, "");