|
@@ -258,9 +258,7 @@ static int rpcb_create_local_unix(void)
|
|
|
clnt4 = NULL;
|
|
|
}
|
|
|
|
|
|
- /* Protected by rpcb_create_local_mutex */
|
|
|
- rpcb_local_clnt = clnt;
|
|
|
- rpcb_local_clnt4 = clnt4;
|
|
|
+ rpcb_set_local(clnt, clnt4);
|
|
|
|
|
|
out:
|
|
|
return result;
|
|
@@ -312,9 +310,7 @@ static int rpcb_create_local_net(void)
|
|
|
clnt4 = NULL;
|
|
|
}
|
|
|
|
|
|
- /* Protected by rpcb_create_local_mutex */
|
|
|
- rpcb_local_clnt = clnt;
|
|
|
- rpcb_local_clnt4 = clnt4;
|
|
|
+ rpcb_set_local(clnt, clnt4);
|
|
|
|
|
|
out:
|
|
|
return result;
|
|
@@ -329,11 +325,11 @@ static int rpcb_create_local(void)
|
|
|
static DEFINE_MUTEX(rpcb_create_local_mutex);
|
|
|
int result = 0;
|
|
|
|
|
|
- if (rpcb_local_clnt)
|
|
|
+ if (rpcb_get_local())
|
|
|
return result;
|
|
|
|
|
|
mutex_lock(&rpcb_create_local_mutex);
|
|
|
- if (rpcb_local_clnt)
|
|
|
+ if (rpcb_get_local())
|
|
|
goto out;
|
|
|
|
|
|
if (rpcb_create_local_unix() != 0)
|