Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121487
b: refs/heads/master
c: 8fbbd36
h: refs/heads/master
i:
  121485: 7775d78
  121483: 4c9cc4a
  121479: f0a8d53
  121471: 1d97de2
v: v3
  • Loading branch information
Volker Lendecke authored and Steve French committed Dec 26, 2008
1 parent 83004d0 commit 1d37d0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d9c6d543165d1d492602c1371cb019040093584
refs/heads/master: 8fbbd365cc700e288fb6f9780b092c5afa4946e5
8 changes: 6 additions & 2 deletions trunk/fs/cifs/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,14 @@ static int allocate_mid(struct cifsSesInfo *ses, struct smb_hdr *in_buf,
{
if (ses->server->tcpStatus == CifsExiting) {
return -ENOENT;
} else if (ses->server->tcpStatus == CifsNeedReconnect) {
}

if (ses->server->tcpStatus == CifsNeedReconnect) {
cFYI(1, ("tcp session dead - return to caller to retry"));
return -EAGAIN;
} else if (ses->status != CifsGood) {
}

if (ses->status != CifsGood) {
/* check if SMB session is bad because we are setting it up */
if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) &&
(in_buf->Command != SMB_COM_NEGOTIATE))
Expand Down

0 comments on commit 1d37d0e

Please sign in to comment.