Received: by 10.223.164.221 with SMTP id h29csp3296010wrb; Wed, 18 Oct 2017 16:13:01 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBFB4vGCHa1rr++Dn94vfVfYExvi//6Y22SBP2O50cI3r0V5c+UIfXSG890nh+nHEUQgfBW X-Received: by 10.98.72.83 with SMTP id v80mr16551018pfa.54.1508368381157; Wed, 18 Oct 2017 16:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508368381; cv=none; d=google.com; s=arc-20160816; b=sShH3OzDYdNQPnwMc3yZhTS/3OD5RxppJJdkIri6Ej/BDZopCx6eL2Aj55fjadsZCn hDmJbBFZ6S4/tozmqBB6bK7HN9RZnF2Lz1rHsv9pWfu3PR3HENti1PRpxYwgi8GeVxxj Xw1/uMpbOYEugvY8v7m6la9J6EsVwWAOY164xJiMEMTNyospSLqUyfHsAsbOR45RxrQ3 80Lo3qLC3lTTL+kkDpgiCGOnW076kjocFkEnZMCP9FxP3HHIlFWgDWQ1FGWkfyOtEnKs wXtX0HMny5lGebk7FqJK0dYAf9UAFkRgJCapUHQUzuaeLzqJbw4QQvQZbkzO0WTgdFhJ yGVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=dS41Sy7BhU7fqhwCpLO0l7s2aO7hmQadsIScA0pok7I=; b=oOSzY0ktYhqn8Au4ttdkND7Vy++CA20uZTUyGXGfCzuSS+n9MfJdm3XpQiYAHByc7X IezpwI1M0yAZEutFdfRPLBEOQ4J490iICRK8Pe4fo9U1WAymSuEifg8BUOuYAQa8/Wev lZjzdFqq7hDFZ50tOVL5Ue3BKu5EVaWrtoT54y2WG/iGA6SE7xLO+a/hg/c/+E9oAUpR rmtD3T/UpBtkfsRIgAkNhRFqPtQBLUMirkjq1CivZChdfwE2S/ULdefEMrrMiczRfXT9 FFHb1aZNJ0RYnN81Byg3XoGtI81ixqww4NnDeo6p6fIOtyBr02tGMuR6AgJpFk6zMeZ9 s8yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si5216494pli.199.2017.10.18.16.12.47; Wed, 18 Oct 2017 16:13:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751693AbdJRXLM (ORCPT + 99 others); Wed, 18 Oct 2017 19:11:12 -0400 Received: from a2nlsmtp01-03.prod.iad2.secureserver.net ([198.71.225.37]:41934 "EHLO a2nlsmtp01-03.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbdJRXLH (ORCPT ); Wed, 18 Oct 2017 19:11:07 -0400 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id 4xT8eRKpdS67i4xT8erQnm; Wed, 18 Oct 2017 16:10:06 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1e4xT8-0005V5-Bf; Wed, 18 Oct 2017 16:09:46 -0700 From: Long Li To: Steve French , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Tom Talpey , Matthew Wilcox , Stephen Hemminger Cc: Long Li Subject: [Patch v5 08/21] CIFS: SMBD: Upper layer reconnects to SMB Direct session Date: Wed, 18 Oct 2017 16:09:07 -0700 Message-Id: <20171018230920.21042-9-longli@exchange.microsoft.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171018230920.21042-1-longli@exchange.microsoft.com> References: <20171018230920.21042-1-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfAlo3/io8Msqmbe1cXtEJ8makNtZzVJsmuw5h4LNwQEsevQ8GijiujwBbkPhXEDQORiMb6jZYClzo4CeOA13M7VZJ5jaRV/cL7Pd8ZyE/fnXCvcz+lf/ g7/fQufYDbCWGTlzooZIKRQ08tPKWKJrMBHKOggqQaFEqN0SuXYKKtAxYEQ2Ktj3VFa0Qbyw3B91P0DiLQ9Fdtb/Ll21IVmwTxsQPLbhJ5iQ2gGYtl5jE6g0 gju2D2Ly/vl1PDhy4HmfkrfUi4TKyqP+tGTV1CbDR33iErKu4H++OLJu2EKhdaGLjYO6ty9750F4ih/J9x3D0Htj2QJu6NX752U05lrYWRmC2WFwXZJ2abww g3WZTnQJx4zcBD8bwRPs6ohh552df7iADfTuvmrf7ct3z9cGKuAA9Ka4PPHXVjTRRUd91iQd79vpjInk4e6Hmvd8osywiC2ga4sCA8VcmqFWp/jpDauc+heq xuZVEa/uj4j3LnVc Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Long Li Do a reconnect on SMB Direct when it is used as the connection. Reconnect can happen for many reasons and it's mostly the decision of SMB2 upper layer. Signed-off-by: Long Li --- fs/cifs/connect.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 2c0b34a..8ca3c13 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -406,7 +406,14 @@ cifs_reconnect(struct TCP_Server_Info *server) /* we should try only the port we connected to before */ mutex_lock(&server->srv_mutex); +#ifdef CONFIG_CIFS_SMB_DIRECT + if (server->rdma) + rc = smbd_reconnect(server); + else + rc = generic_ip_connect(server); +#else rc = generic_ip_connect(server); +#endif if (rc) { cifs_dbg(FYI, "reconnect error %d\n", rc); mutex_unlock(&server->srv_mutex); -- 2.7.4 From 1582937012368659518@xxx Thu Nov 02 07:06:13 +0000 2017 X-GM-THRID: 1582937012368659518 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread