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
7336402f
Commit
7336402f
authored
Apr 22, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exit from waiting on smb response when session dead
parent
54aaf1b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
fs/cifs/connect.c
fs/cifs/connect.c
+4
-4
fs/cifs/transport.c
fs/cifs/transport.c
+4
-4
No files found.
fs/cifs/connect.c
View file @
7336402f
...
...
@@ -2684,11 +2684,11 @@ int cifs_setup_session(unsigned int xid, struct cifsSesInfo *pSesInfo,
if
(
rc
==
0
)
pSesInfo
->
server
->
tcpStatus
=
CifsGood
;
}
pSesInfo
->
capabilities
=
pSesInfo
->
server
->
capabilities
;
if
(
linuxExtEnabled
==
0
)
pSesInfo
->
capabilities
&=
(
~
CAP_UNIX
);
pSesInfo
->
sequence_number
=
0
;
if
(
!
rc
)
{
pSesInfo
->
capabilities
=
pSesInfo
->
server
->
capabilities
;
if
(
linuxExtEnabled
==
0
)
pSesInfo
->
capabilities
&=
(
~
CAP_UNIX
);
pSesInfo
->
sequence_number
=
0
;
cFYI
(
1
,(
"Security Mode: 0x%x Capabilities: 0x%x Time Zone: %d"
,
pSesInfo
->
server
->
secMode
,
pSesInfo
->
server
->
capabilities
,
...
...
fs/cifs/transport.c
View file @
7336402f
...
...
@@ -235,8 +235,8 @@ SendReceive(const unsigned int xid, struct cifsSesInfo *ses,
due to last connection to this server being unmounted */
timeout
=
wait_event_interruptible_timeout
(
ses
->
server
->
response_q
,
midQ
->
midState
&
MID_RESPONSE_RECEIVED
,
(
midQ
->
midState
&
MID_RESPONSE_RECEIVED
)
||
(
ses
->
server
->
tcpStatus
!=
CifsGood
)
,
timeout
);
if
(
signal_pending
(
current
))
{
cFYI
(
1
,
(
"CIFS: caught signal"
));
...
...
@@ -254,8 +254,8 @@ SendReceive(const unsigned int xid, struct cifsSesInfo *ses,
if
(
ses
->
server
->
tcpStatus
==
CifsExiting
)
rc
=
-
EHOSTDOWN
;
else
{
ses
->
server
->
tcpStatus
=
CifsNeedReconnect
;
midQ
->
midState
=
MID_RETRY_NEEDED
;
ses
->
server
->
tcpStatus
=
CifsNeedReconnect
;
midQ
->
midState
=
MID_RETRY_NEEDED
;
}
}
...
...
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