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
a72b6776
Commit
a72b6776
authored
Nov 03, 2003
by
Steve French
Committed by
Steve French
Nov 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not return buffer if request has already timed out.
parent
42dbb05a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
fs/cifs/connect.c
fs/cifs/connect.c
+1
-1
fs/cifs/transport.c
fs/cifs/transport.c
+19
-7
No files found.
fs/cifs/connect.c
View file @
a72b6776
...
...
@@ -305,7 +305,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
mid_q_entry
,
qhead
);
if
(
mid_entry
->
mid
==
smb_buffer
->
Mid
)
{
if
(
(
mid_entry
->
mid
==
smb_buffer
->
Mid
)
&&
(
mid_entry
->
midState
==
MID_REQUEST_SUBMITTED
)
)
{
cFYI
(
1
,
(
" Mid 0x%x matched - waking up "
,
mid_entry
->
mid
));
task_to_wake
=
mid_entry
->
tsk
;
...
...
fs/cifs/transport.c
View file @
a72b6776
...
...
@@ -228,22 +228,34 @@ SendReceive(const unsigned int xid, struct cifsSesInfo *ses,
midState
&
MID_RESPONSE_RECEIVED
,
timeout
);
if
(
signal_pending
(
current
))
{
c
ERROR
(
1
,
(
"CIFS: caught signal"
));
c
FYI
(
1
,
(
"CIFS: caught signal"
));
DeleteMidQEntry
(
midQ
);
return
-
EINTR
;
}
else
{
if
(
midQ
->
resp_buf
)
}
else
{
/* BB spinlock protect this against races with demux thread */
spin_lock
(
&
GlobalMid_Lock
);
if
(
midQ
->
resp_buf
)
{
spin_unlock
(
&
GlobalMid_Lock
);
receive_len
=
be32_to_cpu
(
midQ
->
resp_buf
->
smb_buf_length
);
else
{
}
else
{
cFYI
(
1
,(
"No response buffer"
));
if
(
midQ
->
midState
!=
MID_RETRY_NEED
ED
)
{
if
(
midQ
->
midState
==
MID_REQUEST_SUBMITT
ED
)
{
ses
->
server
->
tcpStatus
=
CifsNeedReconnect
;
midQ
->
midState
=
MID_RETRY_NEEDED
;
spin_unlock
(
&
GlobalMid_Lock
);
DeleteMidQEntry
(
midQ
);
cFYI
(
1
,(
"retrying after setting session need reconnectd"
));
goto
cifs_dead_ses_retry
;
}
else
if
(
midQ
->
midState
==
MID_RETRY_NEEDED
)
{
spin_unlock
(
&
GlobalMid_Lock
);
DeleteMidQEntry
(
midQ
);
cFYI
(
1
,(
"retrying MID_RETRY"
));
goto
cifs_dead_ses_retry
;
}
else
{
spin_unlock
(
&
GlobalMid_Lock
);
DeleteMidQEntry
(
midQ
);
return
-
EIO
;
}
DeleteMidQEntry
(
midQ
);
return
-
EIO
;
}
}
...
...
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