summaryrefslogtreecommitdiff
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorSteve French <smfrench@austin.rr.com>2005-04-28 22:41:11 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-28 22:41:11 -0700
commit0cb766ae629c70d53040f85de73db0583eadb233 (patch)
treeb763f4acf57f69b51d00a3a62ad30cb91b02baba /fs/cifs/connect.c
parent31ca3bc3c569f9fe02aae6974ac3a9126f14902f (diff)
downloadlinux-3.10-0cb766ae629c70d53040f85de73db0583eadb233.tar.gz
linux-3.10-0cb766ae629c70d53040f85de73db0583eadb233.tar.bz2
linux-3.10-0cb766ae629c70d53040f85de73db0583eadb233.zip
[PATCH] cifs: Do not sleep interruptible after socket connect failure
.. since it can be due to pending kill. Update readme information to better describe cifs umount Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index ac1f970e536..e568cc47a7f 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -178,8 +178,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
server->workstation_RFC1001_name);
}
if(rc) {
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(3 * HZ);
+ msleep(3000);
} else {
atomic_inc(&tcpSesReconnectCount);
spin_lock(&GlobalMid_Lock);