summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-02-07 08:54:35 -0500
committerSteve French <sfrench@us.ibm.com>2011-02-07 17:25:55 +0000
commitd402539b8fc3fa21f16eb5e654be742670399e8a (patch)
tree92d69a9989f9eb6abe41255e2fbf3b91b6cb6f02 /fs
parent8132b65bc6ce6d9a4baafdfc28c7cd9c258ed6e4 (diff)
downloadlinux-3.10-d402539b8fc3fa21f16eb5e654be742670399e8a.tar.gz
linux-3.10-d402539b8fc3fa21f16eb5e654be742670399e8a.tar.bz2
linux-3.10-d402539b8fc3fa21f16eb5e654be742670399e8a.zip
cifs: remove checks for ses->status == CifsExiting
ses->status is never set to CifsExiting, so these checks are always false. Tested-by: JG <jg@cms.ac> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/cifssmb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 46c66ed01af..904aa47e351 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -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
* greater than cifs socket timeout which is 7 seconds
@@ -156,7 +153,7 @@ cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command)
* retrying until process is killed or server comes
* back on-line
*/
- if (!tcon->retry || ses->status == CifsExiting) {
+ if (!tcon->retry) {
cFYI(1, "gave up waiting on reconnect in smb_init");
return -EHOSTDOWN;
}