aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/transport.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index e80210693ff7..c98f929315f2 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -385,10 +385,14 @@ static int allocate_mid(struct cifsSesInfo *ses, struct smb_hdr *in_buf,
385{ 385{
386 if (ses->server->tcpStatus == CifsExiting) { 386 if (ses->server->tcpStatus == CifsExiting) {
387 return -ENOENT; 387 return -ENOENT;
388 } else if (ses->server->tcpStatus == CifsNeedReconnect) { 388 }
389
390 if (ses->server->tcpStatus == CifsNeedReconnect) {
389 cFYI(1, ("tcp session dead - return to caller to retry")); 391 cFYI(1, ("tcp session dead - return to caller to retry"));
390 return -EAGAIN; 392 return -EAGAIN;
391 } else if (ses->status != CifsGood) { 393 }
394
395 if (ses->status != CifsGood) {
392 /* check if SMB session is bad because we are setting it up */ 396 /* check if SMB session is bad because we are setting it up */
393 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && 397 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) &&
394 (in_buf->Command != SMB_COM_NEGOTIATE)) 398 (in_buf->Command != SMB_COM_NEGOTIATE))