Article View: muc.lists.freebsd.fs
Article #39[Bug 300130] nfscl: EXCHANGE_ID verifier bump on every recovery causes client-replacement churn against Linux nfsd
From: bugzilla-noreply
Date: Tue, 10 Nov 2026 11:31
Date: Tue, 10 Nov 2026 11:31
40 lines
3592 bytes
3592 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300130 --- Comment #14 from Nick <e@4779.name> --- Comment on attachment 276661 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=276661 nfscl.patch >diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c >index ed19a782c5ba..0e041ea38e29 100644 >--- a/sys/fs/nfsclient/nfs_clrpcops.c >+++ b/sys/fs/nfsclient/nfs_clrpcops.c >@@ -1085,8 +1085,16 @@ nfsrpc_setclient(struct nfsmount *nmp, struct nfsclclient *clp, int reclaim, > * Either there was no previous session or the > * CreateSession attempt failed, so... > * do an ExchangeID followed by the CreateSession. >+ * Only bump the verifier when there was no previous >+ * session (identity reset). When a session existed, >+ * keep the verifier so that a server following >+ * RFC 5661 s18.35.4 case 2 reuses the confirmed >+ * client record instead of replacing it, destroying >+ * all sessions/stateids and re-triggering recovery >+ * for every racing operation (PR 300130). > */ >- clp->nfsc_rev = rev++; >+ if (odsp == NULL) >+ clp->nfsc_rev = rev++; > error = nfsrpc_exchangeid(nmp, clp, &nmp->nm_sockreq, 0, > NFSV4EXCH_USEPNFSMDS | NFSV4EXCH_USENONPNFS, &dsp, > cred, p); -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-300130-3630-qE0SdRzqmz@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<bug-300130-3630@https.bugs.freebsd.org/bugzilla/>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.fs Subject: [Bug 300130] nfscl: EXCHANGE_ID verifier bump on every recovery causes client-replacement churn against Linux nfsd Date: Tue, 10 Nov 2026 11:31:53 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-300130-3630-qE0SdRzqmz@https.bugs.freebsd.org/bugzilla/> References: <bug-300130-3630@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="39227"; mail-complaints-to="news-admin@muc.de" X-Original-To: fs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794310313; 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: in-reply-to:in-reply-to:references:references; bh=jpjZ2x1KwHCngX0PDMvwIX1ofJWTPqNGR5t6wDohOaI=; b=PoZ0xluzVrs9Lm++Y90wfAlaxL8EH9J2X1P3JuZyJpIIIMOCWt8ZRB7CVGB2Xv1O+bksNk dg/4751XGDqFgiejJBOrxwZ6VZmW63sofNHqYZowMYrUx7fcDt8YFuB5KH/c1slOkJRTI5 F9jT47ICCsA+KTVrmJHRQzv5Fm6QYen2UBvDUcts8knTMqmlLeWvhx4Ay0o3hpnIiXIpez 4jGwhg3zthdBqlUHkjzXST2bih4TWM0xUTpDsGCuUyKMBQwB4HOWMYENn0LyBZfdGhR51o K8qAvqIWp8ZR3cBlrQVpmTulfa3zC9PvUwF8WPKeQOudKuQi+ne5jJcq+3xlZA== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f In-Reply-To: <bug-300130-3630@https.bugs.freebsd.org/bugzilla/> Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes