SUNRPC: optimize net_ns dereferencing in rpcbind registering calls
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Fri, 13 Jan 2012 08:52:26 +0000 (12:52 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 1 Feb 2012 00:28:09 +0000 (19:28 -0500)
commit1a114a66466ba914a41df438e806fc10e7d9fb3b
tree1223d978fbe72ac542c10041b408df1ae6693bf1
parent2ea75a10add779b722650aa10836247e7d609fd7
SUNRPC: optimize net_ns dereferencing in rpcbind registering calls

Static rpcbind registering functions can be parametrized by network namespace
pointer, calculated only once, instead of using init_net pointer (or taking it
from current when virtualization will be comleted) in many places.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/rpcb_clnt.c