]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
nfs-utils: don't use signals to shut down nfs server.
authorNeilBrown <neilb@suse.de>
Fri, 23 May 2025 07:41:19 +0000 (17:41 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 May 2025 07:50:19 +0000 (08:50 +0100)
commit7b09ad289a36e388ee4244b574ed32b66b654286
tree4208786ab6af88c699ad76a944b96ea3632f8c93
parentf2681cfb09f1079543dd58cf788f67d65d26e21d
nfs-utils: don't use signals to shut down nfs server.

Since Linux v2.4 it has been possible to stop all NFS server by running

   rpc.nfsd 0

i.e.  by requesting that zero threads be running.  This is preferred as
it doesn't risk killing some other process which happens to be called
"nfsd".

Since Linux v6.6 - and other stable kernels to which

  Commit: 390390240145 ("nfsd: don't allow nfsd threads to be
  signalled.")

has been backported - sending a signal no longer works to stop nfs server
threads.

This patch changes the nfsserver script to use "rpc.nfsd 0" to stop
server threads.

Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver