From: Stanislav Kinsbursky Date: Tue, 25 Oct 2011 11:16:36 +0000 (+0300) Subject: SUNRPC: introduce helpers for reference counted rpcbind clients X-Git-Tag: v3.2-rc1~52^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=914edb1bb2abe2ae4775368f2ffb7f41010fb81e;p=pandora-kernel.git SUNRPC: introduce helpers for reference counted rpcbind clients v6: 1) added write memory barrier to rpcb_set_local to make sure, that rpcbind clients become valid before rpcb_users assignment 2) explicitly set rpcb_users to 1 instead of incrementing it (looks clearer from my pow). v5: fixed races with rpcb_users in rpcb_get_local() This helpers will be used for dynamical creation and destruction of rpcbind clients. Variable rpcb_users is actually a counter of lauched RPC services. If rpcbind clients has been created already, then we just increase rpcb_users. Signed-off-by: Stanislav Kinsbursky Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed