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:
> ..........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
-=-=-=-=-=-=-=-=-=-=-=-
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/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to