]> git.baikalelectronics.ru Git - kernel.git/commit
Lockd: per-net up and down routines introduced
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Tue, 31 Jan 2012 11:08:05 +0000 (15:08 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 15 Feb 2012 05:19:47 +0000 (00:19 -0500)
commit2cd869676d84a54d2bdbb26f1bc57aaae9e0f78f
tree1aa476668966b94ea5f5e399ea15f3aede936f47
parent8dbb19d78e0ee32ec70422e4daa5c7d5ffc267dd
Lockd: per-net up and down routines introduced

This patch introduces per-net Lockd initialization and destruction routines.
The logic is the same as in global Lockd up and down routines. Probably the
solution is not the best one. But at least it looks clear.
So per-net "up" routine are called only in case of lockd is running already. If
per-net resources are not allocated yet, then service is being registered with
local portmapper and lockd sockets created.
Per-net "down" routine is called on every lockd_down() call in case of global
users counter is not zero.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/svc.c
include/linux/sunrpc/svc.h
net/sunrpc/svc.c