Commit d402539b authored by Jeff Layton's avatar Jeff Layton Committed by Steve French

cifs: remove checks for ses->status == CifsExiting

ses->status is never set to CifsExiting, so these checks are
always false.
Tested-by: default avatarJG <jg@cms.ac>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 8132b65b
...@@ -136,9 +136,6 @@ cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command) ...@@ -136,9 +136,6 @@ cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command)
} }
} }
if (ses->status == CifsExiting)
return -EIO;
/* /*
* Give demultiplex thread up to 10 seconds to reconnect, should be * Give demultiplex thread up to 10 seconds to reconnect, should be
* greater than cifs socket timeout which is 7 seconds * greater than cifs socket timeout which is 7 seconds
...@@ -156,7 +153,7 @@ cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command) ...@@ -156,7 +153,7 @@ cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command)
* retrying until process is killed or server comes * retrying until process is killed or server comes
* back on-line * back on-line
*/ */
if (!tcon->retry || ses->status == CifsExiting) { if (!tcon->retry) {
cFYI(1, "gave up waiting on reconnect in smb_init"); cFYI(1, "gave up waiting on reconnect in smb_init");
return -EHOSTDOWN; return -EHOSTDOWN;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment