From patchwork Fri Dec 17 15:08:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 416031 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBHF8NEM000693 for ; Fri, 17 Dec 2010 15:08:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755198Ab0LQPIb (ORCPT ); Fri, 17 Dec 2010 10:08:31 -0500 Received: from mail-gx0-f180.google.com ([209.85.161.180]:55658 "EHLO mail-gx0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755134Ab0LQPIa (ORCPT ); Fri, 17 Dec 2010 10:08:30 -0500 Received: by mail-gx0-f180.google.com with SMTP id 19so428773gxk.11 for ; Fri, 17 Dec 2010 07:08:30 -0800 (PST) Received: by 10.100.125.13 with SMTP id x13mr673831anc.6.1292598510646; Fri, 17 Dec 2010 07:08:30 -0800 (PST) Received: from salusa.poochiereds.net (cpe-071-070-153-003.nc.res.rr.com [71.70.153.3]) by mx.google.com with ESMTPS id 2sm4330382anw.38.2010.12.17.07.08.29 (version=SSLv3 cipher=RC4-MD5); Fri, 17 Dec 2010 07:08:29 -0800 (PST) From: Jeff Layton To: smfrench@gmail.com Cc: linux-cifs@vger.kernel.org Subject: [PATCH 08/18] cifs: don't reconnect server when we don't get a response Date: Fri, 17 Dec 2010 10:08:07 -0500 Message-Id: <1292598497-29796-9-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.3.3 In-Reply-To: <1292598497-29796-1-git-send-email-jlayton@redhat.com> References: <1292598497-29796-1-git-send-email-jlayton@redhat.com> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 17 Dec 2010 15:08:43 +0000 (UTC) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index c41c9c4..f65cdec 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) if (mid->midState == MID_REQUEST_SUBMITTED) { if (server->tcpStatus == CifsExiting) rc = -EHOSTDOWN; - else { - server->tcpStatus = CifsNeedReconnect; + else mid->midState = MID_RETRY_NEEDED; - } } if (rc != -EHOSTDOWN) {