diff options
| author | Scott Mayhew <smayhew@redhat.com> | 2026-06-08 09:14:02 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-08-10 09:54:35 -0400 |
| commit | 75e620912c815801ea241e133ba34c9e8cf2cbb1 (patch) | |
| tree | 49e749cc5bc33e4c0dec253f4918172b031145bf /include/linux | |
| parent | f882a31dee2f829a93815210d2a00e9efb7023f5 (diff) | |
NFSD: fix up error returned by write_threads()
Previously, writing 0 to /proc/fs/nfsd/threads would return 0 if the
NFS server wasn't running. After commit 14282cc3cfa2 ("NFSD: don't
start nfsd if sv_permsocks is empty"), -EIO is returned. Existing
scripts don't expect this behavior.
Add a check to bypass the call to nfsd_svc() when newthreads is 0 and
the NFS server is already stopped.
Fixes: 14282cc3cfa2 ("NFSD: don't start nfsd if sv_permsocks is empty")
Cc: stable@vger.kernel.org
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260608131402.95625-1-smayhew@redhat.com
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
