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
nexedi
linux
Commits
fec4f23a
Commit
fec4f23a
authored
Nov 21, 2003
by
Steve French
Committed by
Steve French
Nov 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing message on timed out requests
parent
4f983096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+3
-2
No files found.
fs/cifs/cifssmb.c
View file @
fec4f23a
...
@@ -77,7 +77,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
...
@@ -77,7 +77,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
for those three - in the calling routine */
for those three - in the calling routine */
if
(
tcon
)
{
if
(
tcon
)
{
if
((
tcon
->
ses
)
&&
(
tcon
->
ses
->
server
)){
if
((
tcon
->
ses
)
&&
(
tcon
->
ses
->
server
)){
struct
nls_table
*
nls_codepage
=
load_nls_default
()
;
struct
nls_table
*
nls_codepage
;
/* Give Demultiplex thread up to 10 seconds to
/* Give Demultiplex thread up to 10 seconds to
reconnect, should be greater than cifs socket
reconnect, should be greater than cifs socket
timeout which is 7 seconds */
timeout which is 7 seconds */
...
@@ -88,7 +88,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
...
@@ -88,7 +88,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
/* on "soft" mounts we wait once */
/* on "soft" mounts we wait once */
if
((
tcon
->
retry
==
FALSE
)
||
if
((
tcon
->
retry
==
FALSE
)
||
(
tcon
->
ses
->
status
==
CifsExiting
))
{
(
tcon
->
ses
->
status
==
CifsExiting
))
{
unload_nls
(
nls_codepage
);
cFYI
(
1
,(
"gave up waiting on reconnect in smb_init"
)
);
return
-
EHOSTDOWN
;
return
-
EHOSTDOWN
;
}
/* else "hard" mount - keep retrying until
}
/* else "hard" mount - keep retrying until
process is killed or server comes back up */
process is killed or server comes back up */
...
@@ -97,6 +97,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
...
@@ -97,6 +97,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
}
}
nls_codepage
=
load_nls_default
();
/* need to prevent multiple threads trying to
/* need to prevent multiple threads trying to
simultaneously reconnect the same SMB session */
simultaneously reconnect the same SMB session */
down
(
&
tcon
->
ses
->
sesSem
);
down
(
&
tcon
->
ses
->
sesSem
);
...
...
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