From nobody Tue Aug 27 21:09:31 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 4WtgCr6JkFz5Jws4 for ; Tue, 27 Aug 2024 21:09:44 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WtgCr4Vnjz4wVS for ; Tue, 27 Aug 2024 21:09:44 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42819654737so50880245e9.1 for ; Tue, 27 Aug 2024 14:09:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724792983; x=1725397783; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NX4IbqHfa5327H4urDGdUF5Df6RypuG+A49oO2gSCpA=; b=u0R/GFnFTEqEKBPA9xgRdg0Zmko7KG3m+EZL/BQiaScyp8Qm9BEQEHoFPOYhUEa8On 76NZrMHZhaMuhFOLIxxqp6/pVukNT0XtS4K8W/8aSqf62LmyJ3v9NgRd2IJGzlRANjmz q7qQAy+SqBxRhr+cdArY2EAXF/9VQ4RQAJxjF1zI8r5Q9HxtlEHd68eTjD71JmNM/D/V nEjEgVUm20AO+uqyqFAFf4IZqXiQ1+dA7pO3/aasLxWbEQFTjXBN7w/V5UZcKT6JMG5V 6sjxwLc3F6Kp/6A1vTY2IZr5uDEm7E+XFnipvCKB8cpac3k+s/ZdzgKa7zxo2WGbQesj iY5Q== X-Forwarded-Encrypted: i=1; AJvYcCWCMNRuR4i/JkrmWFOM6IpDfRAsk9XlX5JfTvZjS+TGCEVV2NEgLO5e91o6nhkHg+36+zKID6KpKlQU6oJ+ITzDhhSzww==@freebsd.org X-Gm-Message-State: AOJu0YwdSYjALpzwNla27vgMjg+45xZcxlRLiFdVPcvyeWjFc1hR9AEb urPk0yPq3uBuq6wapTUa41iMy85h5PBbC68iwaGCUdK3PQJhsduTgTtmUzAecjw= X-Google-Smtp-Source: AGHT+IFOFGcAcKayBRN3Rmt/3D4+0jlq7VbvU3Y47mQM9pQGHeX775vuhvB9DToR/FUSwGuWQwRqKg== X-Received: by 2002:a05:600c:3514:b0:426:51dc:f6cd with SMTP id 5b1f17b1804b1-42acd57a01dmr108122495e9.18.1724792982617; Tue, 27 Aug 2024 14:09:42 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.201]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42abed8b86bsm234115435e9.4.2024.08.27.14.09.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Aug 2024 14:09:41 -0700 (PDT) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: git: fe66e4caf456 - main - rangelock: Disable cheat mode by default From: Jessica Clarke In-Reply-To: <202408272038.47RKc6Ga049071@gitrepo.freebsd.org> Date: Tue, 27 Aug 2024 22:09:31 +0100 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <9CF133C9-42AD-41EE-961E-FBD76DD5F592@freebsd.org> References: <202408272038.47RKc6Ga049071@gitrepo.freebsd.org> To: Mark Johnston X-Mailer: Apple Mail (2.3776.700.51) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4WtgCr4Vnjz4wVS On 27 Aug 2024, at 21:38, Mark Johnston wrote: >=20 > The branch main has been updated by markj: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3Dfe66e4caf4561ee3349ad7a29cc99761= 08c3b04f >=20 > commit fe66e4caf4561ee3349ad7a29cc9976108c3b04f > Author: Mark Johnston > AuthorDate: 2024-08-27 20:31:25 +0000 > Commit: Mark Johnston > CommitDate: 2024-08-27 20:36:31 +0000 >=20 > rangelock: Disable cheat mode by default >=20 > 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. >=20 > 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(-) >=20 > 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. > */ >=20 > -static int rangelock_cheat =3D 1; > +static int rangelock_cheat =3D 0; This probably deserves a comment for why it=E2=80=99s disabled/the risks = of enabling it, and/or some text in the sysctl description? Jess > SYSCTL_INT(_debug, OID_AUTO, rangelock_cheat, CTLFLAG_RWTUN, > &rangelock_cheat, 0, > "");