Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b2a47c16
Commit
b2a47c16
authored
Mar 10, 2005
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Ensure "mount" is always interruptible and soft
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
00e1e0ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
fs/nfs/inode.c
fs/nfs/inode.c
+7
-4
No files found.
fs/nfs/inode.c
View file @
b2a47c16
...
...
@@ -326,6 +326,9 @@ nfs_sb_init(struct super_block *sb, rpc_authflavor_t authflavor)
if
(
sb
->
s_maxbytes
>
MAX_LFS_FILESIZE
)
sb
->
s_maxbytes
=
MAX_LFS_FILESIZE
;
server
->
client
->
cl_intr
=
(
server
->
flags
&
NFS_MOUNT_INTR
)
?
1
:
0
;
server
->
client
->
cl_softrtry
=
(
server
->
flags
&
NFS_MOUNT_SOFT
)
?
1
:
0
;
/* We're airborne Set socket buffersize */
rpc_setbufsize
(
server
->
client
,
server
->
wsize
+
100
,
server
->
rsize
+
100
);
return
0
;
...
...
@@ -373,8 +376,8 @@ nfs_create_client(struct nfs_server *server, const struct nfs_mount_data *data)
goto
out_fail
;
}
clnt
->
cl_intr
=
(
server
->
flags
&
NFS_MOUNT_INTR
)
?
1
:
0
;
clnt
->
cl_softrtry
=
(
server
->
flags
&
NFS_MOUNT_SOFT
)
?
1
:
0
;
clnt
->
cl_intr
=
1
;
clnt
->
cl_softrtry
=
1
;
clnt
->
cl_chatty
=
1
;
return
clnt
;
...
...
@@ -1624,6 +1627,8 @@ static int nfs4_fill_super(struct super_block *sb, struct nfs4_mount_data *data,
err
=
PTR_ERR
(
clnt
);
goto
out_fail
;
}
clnt
->
cl_intr
=
1
;
clnt
->
cl_softrtry
=
1
;
clnt
->
cl_chatty
=
1
;
clp
->
cl_rpcclient
=
clnt
;
clp
->
cl_cred
=
rpcauth_lookupcred
(
clnt
->
cl_auth
,
0
);
...
...
@@ -1655,8 +1660,6 @@ static int nfs4_fill_super(struct super_block *sb, struct nfs4_mount_data *data,
return
PTR_ERR
(
clnt
);
}
clnt
->
cl_intr
=
(
server
->
flags
&
NFS4_MOUNT_INTR
)
?
1
:
0
;
clnt
->
cl_softrtry
=
(
server
->
flags
&
NFS4_MOUNT_SOFT
)
?
1
:
0
;
server
->
client
=
clnt
;
if
(
server
->
nfs4_state
->
cl_idmap
==
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment