]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a new '-S' option to mountd, which tells it to suspend
authorrmacklem <rmacklem@FreeBSD.org>
Mon, 15 Oct 2012 00:17:16 +0000 (00:17 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Mon, 15 Oct 2012 00:17:16 +0000 (00:17 +0000)
commit3b6779863aae43214bbd97da920155fd3c28722e
tree7afb0418c60c7c14e0b9dd1f86c05adf0f564c6a
parent63907e64f4afa3f9fe9237e11c2aedcd371e33e0
Add a new '-S' option to mountd, which tells it to suspend
execution of the nfsd threads while it is reloading the exports.
This avoids clients from getting intermittent access errors
when the exports are being reloaded non-atomically.
It is not an ideal solution, since requests will back up while
the nfsd threads are suspended. Also, when this option is used,
if mountd crashes while reloading exports, mountd will have to
be restarted to get the nfsd threads to resume execution.
This has been tested by Vincent Hoffman (vince at unsane.co.uk)
and John Hickey (jh at deterlab.net).
The nfse patch offers a more comprehensive solution for this issue.

PR: kern/9619, kern/131342
Reviewed by: kib
MFC after: 2 weeks
usr.sbin/mountd/mountd.c