]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: replace boolean nfsd_up flag by users counter
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Thu, 6 Dec 2012 11:23:39 +0000 (14:23 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Dec 2012 21:25:41 +0000 (16:25 -0500)
commite027637a0365c344f667288f83d3f6b60a68c2bd
treeaa86b4da7bf1a993e2bfba8a41e3512484ac653d
parent203048154157f0bdc9e25765a4e4643ca68f997f
nfsd: replace boolean nfsd_up flag by users counter

Since we have generic NFSd resurces, we have to introduce some way how to
allocate and destroy those resources on first per-net NFSd start and on
last per-net NFSd stop respectively.
This patch replaces global boolean nfsd_up flag (which is unused now) by users
counter and use it to determine either we need to allocate generic resources
or destroy them.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfssvc.c