From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796393299; b=gUPv3ZWTf//887zIjVacSZchpoDf4+XvhmKvuhL58OjBoNZkrWYFuW+1wb6ZL7h4hXUP zUECyJ6ejvniuEg3Q5DxLJniV4bjpRFSx+9/lwLVSR5kYBmZCY6Irgc/knQXCpgqXSK5F CHCvYsZPstX2X1by/RDTS9xcqo+7tVSxcOpJqExLcHTu1VSdsXZMUT+X2HcTiGRvmbG/O 04SBpYZ8+/WcoM2cbrfcbxZwjWzhoiTkk4G+ouv7QclSdNBfCBtZwVdsdncmNCBQZ4S0Z NRJqIdxk3EQR8KCO+8c4gBTAWEAO6VKbs5J+cvoOS1aZgUha596XaMt16xaJkbzXU7w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796393299; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Debian-User; bh=gJs24ed4hNnXUvrP+JPLYdfvjvY9MnWyroiZ6XXIQxg=; b=bwtGUkCXef/hzuCJJf7uffFMuk+LUFU7sJW5aY7kZLTsw4MEA0wYvjjy7Dr8YccF1xjj EWQ4NtW0Zf/sbBRhvxYT/s+mw+kQ0dmMbfMimIpok1e05yYCFsXpaaXYe1ylzs5vekKwU 5ovkVrNRblQtkbf/FUBJ3bzGgeDy+ktsL92C3BkGXSLWWZb+XUTxR1mFtGpQoGG/LDc5C mXD2KDckCC5Lc847+TbX6/ATj2OviRaKlOB5KK5msZtu2hrH3m/4kz1rHda8WpYi+ZFrZ mCG/DiSh8qF6CISmF1acyDimv6kbvTMPVZ9imImWO/42nzq7Ebi4M4hNc8jtcfPHq8A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=FWWzHH3Y; arc=none smtp.remote-ip=82.195.75.108 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAEFE606A322; Fri, 4 Dec 2026 14:08:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DAEFE606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=FWWzHH3Y DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gJs24ed4hNnXUvrP+JPLYdfvjvY9MnWyroiZ6XXIQxg=; b=FWWzHH3YgIe2r8pzDbIA5FTBwk 4hTbHGNq6OwlYRY003WdbLgRw58BmRv6g7szlhw/Lblvj+c2DC5+qACx0rOw1o7rdsUZDoJsBQIEn 5cTGTHwW0SR3ibgNM3ZwrgtE9JjRhnDSN4Rt4dxGo6QCimDIlXSH2HWaKLUTvknfi2R4EUrdylbne VrgzxiCdqKb7PsT1JWvTW5IO09cgmGexLF2RMA3Ob9uMR21H45SvzToRhRkOUo2Cm+r///jsyqK3Z A07K9jM775p8O7f0bIkJsccI3/Iec+68qFvql8Bfysu+jyhEWBw8OHcDILuq3o2uBvu15WCt6AYwH 2rYsEZzQ==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1xZTxH-0037Af-2H; Fri, 04 Dec 2026 14:08:07 +0000 Received: by eldamar.lan (Postfix, from userid 1000) id E7B73DC0535; Fri, 04 Dec 2026 15:08:06 +0100 (CET) Date: Fri, 4 Dec 2026 15:08:06 +0100 From: Salvatore Bonaccorso To: Julien Leclerc , 1153524@bugs.debian.org Cc: Jeff Layton , "linux-nfs@vger.kernel.org" , Chuck Lever , "regressions@lists.linux.dev" Subject: Re: Bug#1153524: [REGRESSION] nfsd: blocking NFSv4.2 LOCK never woken by CB_NOTIFY_LOCK since 6.12, cross-client waiters stall 30 s Message-ID: References: <28b95155ac40f5435eb94f206ff1e35111ce481a.camel@kernel.org> X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Debian-User: carnil Hi Jeff, hi Julien On Tue, Dec 01, 2026 at 05:08:26PM +0000, Julien Leclerc wrote: > Hi Jeff, > > Thanks for digging into this so quickly. Your explanation matches > everything we saw in the traces. > > I tested the four commits on top of v6.12.118, resolving the fs.h > conflict the same way (FOP_ASYNC_LOCK as (1 << 6)), on a separate test > setup: > > - Server: Debian 13, x86_64, v6.12.118 + the 4 commits, built with the > config of the Debian 6.12.118 kernel; export on ext4 with the same > options as our production server. > - Clients: two Debian 13 hosts (Debian 6.12.118), mounted with > vers=4.2. > - Test: client A holds an exclusive flock for 4 s, client B asks for > it 1 s later with flock -w 60. > > Debian 6.12.118 on the server (unpatched): > > A holds, B waits: 31.32 s, 31.37 s > B holds, A waits: 30.64 s > A holds, A waits: 3.59 s (same client, control) > > v6.12.118 + the 4 commits on the server: > > A holds, B waits: 3.16 s, 3.04 s, 2.98 s, 3.17 s > B holds, A waits: 2.99 s, 2.96 s > A holds, A waits: 2.98 s, 2.98 s (same client, control) > > The waiter now gets the lock as soon as it is released (the remaining > ~3 s is the holder's sleep). With the nfsd tracepoints enabled, the > LOCKU is followed by nfsd_cb_notify_lock and nfsd_cb_queue for the > waiting client, then nfsd_cb_notify_lock_done. A non-blocking request > (flock -n) still fails immediately. > > Tested-by: Julien Leclerc > > Thanks again for the quick backport. Jeff, are you going to submit those? I would like to release 6.12.120 soon for trixie, and ideally I pick as well up those 4 commits to fix the regression Julien is seeing, and would want to make sure they get at least in in 6.12.121 later and we can drop those. Regards, Salvatore