public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nfs-utils] f43: nfsd: don't assume service is running when setting thread count to 0
@ 2026-06-17 1:09 Steve Dickson
0 siblings, 0 replies; only message in thread
From: Steve Dickson @ 2026-06-17 1:09 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/nfs-utils
Branch : f43
Commit : 6d551109350c57c59b02eb1998c2dd8407e96828
Author : Steve Dickson <steved@redhat.com>
Date : 2026-06-16T08:10:13-04:00
Stats : +44/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/nfs-utils/c/6d551109350c57c59b02eb1998c2dd8407e96828?branch=f43
Log:
nfsd: don't assume service is running when setting thread count to 0
Signed-off-by: Steve Dickson <steved@redhat.com>
---
diff --git a/nfs-utils-2.8.7-nfsd-thread-count-zero.patch b/nfs-utils-2.8.7-nfsd-thread-count-zero.patch
new file mode 100644
index 0000000..e33ae6f
--- /dev/null
+++ b/nfs-utils-2.8.7-nfsd-thread-count-zero.patch
@@ -0,0 +1,39 @@
+commit f993f1ceb5c5ca68d62cbdc1f040d228d6d9a018
+Author: Scott Mayhew <smayhew@redhat.com>
+Date: Tue Jun 16 06:57:20 2026 -0400
+
+ nfsd: don't assume service is running when setting thread count to 0
+
+ Newer kernels return -EIO if you try to write to /proc/fs/nfsd/threads
+ and there are no active listeners.
+
+ Signed-off-by: Scott Mayhew <smayhew@redhat.com>
+ Signed-off-by: Steve Dickson <steved@redhat.com>
+
+diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
+index 365e145d..c95d32f4 100644
+--- a/utils/nfsd/nfsd.c
++++ b/utils/nfsd/nfsd.c
+@@ -311,12 +311,16 @@ main(int argc, char **argv)
+ argv[0], count);
+ count = 1;
+ } else if (count == 0) {
+- /*
+- * don't bother setting anything else if the threads
+- * are coming down anyway.
+- */
+- socket_up = 1;
+- goto set_threads;
++ if (nfssvc_inuse()) {
++ /*
++ * don't bother setting anything else if the threads
++ * are coming down anyway.
++ */
++ socket_up = 1;
++ goto set_threads;
++ } else {
++ goto out;
++ }
+ }
+ }
+
diff --git a/nfs-utils.spec b/nfs-utils.spec
index 4451fd8..972e983 100644
--- a/nfs-utils.spec
+++ b/nfs-utils.spec
@@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser
Name: nfs-utils
URL: http://linux-nfs.org/
Version: 2.8.7
-Release: 3%{?dist}
+Release: 4%{?dist}
Epoch: 1
# group all 32bit related archs
@@ -18,6 +18,7 @@ Patch001: nfs-utils-2.8.7-nfsdctl-no-listeners.patch
Patch002: nfs-utils-2.9.1-nfs-iostat-display-MBs.patch
Patch003: nfs-utils-2.8.7-libnfsidmap-empty-realms.patch
Patch004: nfs-utils-2.8.7-getport-warning.patch
+Patch005: nfs-utils-2.8.7-nfsd-thread-count-zero.patch
Patch100: nfs-utils-1.2.1-statdpath-man.patch
Patch102: nfs-utils-1.2.5-idmap-errmsg.patch
@@ -452,6 +453,9 @@ rm -rf /etc/systemd/system/rpc-*.requires
%{_mandir}/*/nfsiostat.8.gz
%changelog
+* Tue Jun 16 2026 Steve Dickson <steved@redhat.com> 2.8.7-4
+- nfsd: don't assume service is running when setting thread count to 0
+
* Sat May 30 2026 Steve Dickson <steved@redhat.com> 2.8.7-3
- libnfsidmap: avoid malloc(0) for empty Local-Realms
- Removed warnings in nfs_sockaddr2universal()
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-17 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-17 1:09 [rpms/nfs-utils] f43: nfsd: don't assume service is running when setting thread count to 0 Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox