]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r299201
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 01:19:30 +0000 (01:19 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 01:19:30 +0000 (01:19 +0000)
commit3e1c744aa07b988ffb00e735ef1344fe60087a9d
tree38d4114d9a6d7b4917fa6639f496215bf45cb44c
parent5582d02207a3fb87ce3e5e1968fa8989e5ee4649
MFC: r299201
Give mountd -S priority over outstanding RPC requests when suspending the nfsd.

It was reported via email that under certain heavy RPC loads
long delays before the exports would be updated was observed
when using "mountd -S". This patch reverses the priority between
the exclusive lock request to suspend the nfsd threads and the
shared lock request for performing RPCs.
As such, when mountd attempts to suspend the nfsd threads, it
gets priority over outstanding RPC requests to do this.
I suspect that the case reported was an artificial test load,
but this patch did fix the problem for the reporter.

git-svn-id: svn://svn.freebsd.org/base/stable/10@300254 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsserver/nfs_nfsdkrpc.c