diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/mount_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |