diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-01-11 07:24:02 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-01-20 12:08:50 -0500 |
commit | dad255b182363db1d1124458cd3fb0a4deac0d0f (patch) | |
tree | 9b49fba2d6249200cce538b6a53bd22dd3a0aac8 /fs | |
parent | 0ade640e9cda805692dbf688f4bb69e94719275a (diff) |
cifs: don't reconnect server when we don't get a response
We only want to force a reconnect to the server under very limited and
specific circumstances. Now that we have processes waiting indefinitely
for responses, we shouldn't reach this point unless a reconnect is
already in process. Thus, there's no reason to re-mark the server for
reconnect here.
Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Reviewed-by: Pavel Shilovsky <piastryyy@gmail.com>
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/transport.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index c41c9c4f0a79..f65cdec042e4 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c | |||
@@ -374,10 +374,8 @@ sync_mid_result(struct mid_q_entry *mid, struct TCP_Server_Info *server) | |||
374 | if (mid->midState == MID_REQUEST_SUBMITTED) { | 374 | if (mid->midState == MID_REQUEST_SUBMITTED) { |
375 | if (server->tcpStatus == CifsExiting) | 375 | if (server->tcpStatus == CifsExiting) |
376 | rc = -EHOSTDOWN; | 376 | rc = -EHOSTDOWN; |
377 | else { | 377 | else |
378 | server->tcpStatus = CifsNeedReconnect; | ||
379 | mid->midState = MID_RETRY_NEEDED; | 378 | mid->midState = MID_RETRY_NEEDED; |
380 | } | ||
381 | } | 379 | } |
382 | 380 | ||
383 | if (rc != -EHOSTDOWN) { | 381 | if (rc != -EHOSTDOWN) { |