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
afba7f60
Commit
afba7f60
authored
Apr 22, 2004
by
Steve French
Committed by
Steve French
Apr 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error code mapping on bad host
parent
450734dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
fs/cifs/transport.c
fs/cifs/transport.c
+11
-8
No files found.
fs/cifs/transport.c
View file @
afba7f60
/*
* fs/cifs/transport.c
*
* Copyright (C) International Business Machines Corp., 2002,200
3
* Copyright (C) International Business Machines Corp., 2002,200
4
* Author(s): Steve French (sfrench@us.ibm.com)
*
* This library is free software; you can redistribute it and/or modify
...
...
@@ -236,7 +236,8 @@ SendReceive(const unsigned int xid, struct cifsSesInfo *ses,
timeout
=
wait_event_interruptible_timeout
(
ses
->
server
->
response_q
,
(
midQ
->
midState
&
MID_RESPONSE_RECEIVED
)
||
(
ses
->
server
->
tcpStatus
!=
CifsGood
),
((
ses
->
server
->
tcpStatus
!=
CifsGood
)
&&
(
ses
->
server
->
tcpStatus
!=
CifsNew
)),
timeout
);
if
(
signal_pending
(
current
))
{
cFYI
(
1
,
(
"CIFS: caught signal"
));
...
...
@@ -259,12 +260,14 @@ SendReceive(const unsigned int xid, struct cifsSesInfo *ses,
}
}
if
(
rc
!=
-
EHOSTDOWN
)
{
if
(
midQ
->
midState
==
MID_RETRY_NEEDED
)
{
rc
=
-
EAGAIN
;
cFYI
(
1
,(
"marking request for retry"
));
}
else
{
rc
=
-
EIO
;
}
}
spin_unlock
(
&
GlobalMid_Lock
);
DeleteMidQEntry
(
midQ
);
return
rc
;
...
...
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