aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/lockd/mon.c2
-rw-r--r--fs/nfs/mount_clnt.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
index 2102e2d0134d..3353ed8421a7 100644
--- a/fs/lockd/mon.c
+++ b/fs/lockd/mon.c
@@ -61,6 +61,7 @@ nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res)
61 status); 61 status);
62 else 62 else
63 status = 0; 63 status = 0;
64 rpc_shutdown_client(clnt);
64 out: 65 out:
65 return status; 66 return status;
66} 67}
@@ -138,7 +139,6 @@ nsm_create(void)
138 .program = &nsm_program, 139 .program = &nsm_program,
139 .version = SM_VERSION, 140 .version = SM_VERSION,
140 .authflavor = RPC_AUTH_NULL, 141 .authflavor = RPC_AUTH_NULL,
141 .flags = (RPC_CLNT_CREATE_ONESHOT),
142 }; 142 };
143 143
144 return rpc_create(&args); 144 return rpc_create(&args);
diff --git a/fs/nfs/mount_clnt.c b/fs/nfs/mount_clnt.c
index ca5a266a3140..878d7a5cb6d4 100644
--- a/fs/nfs/mount_clnt.c
+++ b/fs/nfs/mount_clnt.c
@@ -69,6 +69,7 @@ nfsroot_mount(struct sockaddr_in *addr, char *path, struct nfs_fh *fh,
69 msg.rpc_proc = &mnt_clnt->cl_procinfo[MNTPROC_MNT]; 69 msg.rpc_proc = &mnt_clnt->cl_procinfo[MNTPROC_MNT];
70 70
71 status = rpc_call_sync(mnt_clnt, &msg, 0); 71 status = rpc_call_sync(mnt_clnt, &msg, 0);
72 rpc_shutdown_client(mnt_clnt);
72 return status < 0? status : (result.status? -EACCES : 0); 73 return status < 0? status : (result.status? -EACCES : 0);
73} 74}
74 75
@@ -84,8 +85,7 @@ mnt_create(char *hostname, struct sockaddr_in *srvaddr, int version,
84 .program = &mnt_program, 85 .program = &mnt_program,
85 .version = version, 86 .version = version,
86 .authflavor = RPC_AUTH_UNIX, 87 .authflavor = RPC_AUTH_UNIX,
87 .flags = (RPC_CLNT_CREATE_ONESHOT | 88 .flags = RPC_CLNT_CREATE_INTR,
88 RPC_CLNT_CREATE_INTR),
89 }; 89 };
90 90
91 return rpc_create(&args); 91 return rpc_create(&args);