nfsserver script cannot stop the nfsd threads
Hello,
Recently, when I execute 'nfsserver stop' to stop nfsd service, I find that nfsd threads cannot be killed.
Quoted 8 lines
# nfsserver stop stopping statd: done stopping mountd: done stopping nfsd: ..........failed using signal 9: ..........failed
I noticed that nfsserver script uses 'start-stop-daemon --stop --quiet --signal 1 --name nfsd' to stop nfsd service, which works by sending a signal to nfsd threads.
And I have identified that this issue was caused by the following linux patch:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7229200f68662660bb4d55f19247eaf3c79a4217
This patch said "nfsd stops allowing signals and we don't check for their delivery any more" and it recommends using /proc/fs/nfsd/threads instead of sending signals, for example, "echo 0 > /proc/fs/nfsd/threads" will stop all nfsd threads.
I would like to know if this issue a problem need to be fixed?
Best regards.
Liyuan
I guess this should be raised with nfsd upstream? Their answer is authoritative, we'd be only guessing.
Alex
Quoted 33 lines · On Thu, 29 Aug 2024 at 15:35, pangliyuan1 via lists.yoctoproject.org…
Hello,
Recently, when I execute 'nfsserver stop' to stop nfsd service, I find that nfsd threads cannot be killed.
# nfsserver stop stopping statd: done stopping mountd: done stopping nfsd: ..........failed using signal 9: ..........failedI noticed that nfsserver script uses 'start-stop-daemon --stop --quiet --signal 1 --name nfsd' to stop nfsd service, which works by sending a signal to nfsd threads.
And I have identified that this issue was caused by the following linux patch:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7229200f68662660bb4d55f19247eaf3c79a4217This patch said "nfsd stops allowing signals and we don't check for their delivery any more" and it recommends using
/proc/fs/nfsd/threadsinstead of sending signals, for example, "echo 0 >/proc/fs/nfsd/threads" will stop all nfsd threads.I would like to know if this issue a problem need to be fixed?
Best regards.
Liyuan-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63771): https://lists.yoctoproject.org/g/yocto/message/63771
Mute This Topic: https://lists.yoctoproject.org/mt/108161046/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
I am using the 'nfsserver' script from yocto's poky repository, so this issue should also be related to yocto?
That's just the script the starts the software. The actual software is fetched and build and installed in this recipe:
If you look into the nfs-utils source tree, you'll probably find ways to contact them. If they give an authoritative advice on the correct thing to do we can incorporate that into the script.
Alex
Quoted 4 lines · On Thu, 29 Aug 2024 at 16:16, pangliyuan1 via Lists.Yoctoproject.Org…
I am using the 'nfsserver' script from yocto's poky repository, so this issue should also be related to yocto?