Received: by 10.223.164.197 with SMTP id h5csp684827wrb; Sat, 4 Nov 2017 22:47:37 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RdaDldEIFrLvNFu3YI5HoySwum8EGcGNf1Vjk+teSxgmJsX/qnyNollyMPQEnEUFJDAzKU X-Received: by 10.159.235.142 with SMTP id f14mr11212539plr.450.1509860857412; Sat, 04 Nov 2017 22:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509860857; cv=none; d=google.com; s=arc-20160816; b=PiWKBzhk5TXxlktTl1yIMmtrXDh1N/BhOYA13OMCtxGBohkunn0D6NTSBdS6aKolxl hL3kT3SNwtOdIj7c43MP8hAj1fBKd0Rc1y/sOJNJE9sOWNPwqTYEhyMBBFMu8u8hJqZc 5mm6A4wh4bKmtFU7vsn/cWRzUHIzDrSyhed3e1AArw370dcjZUmNO2d9MXIG1P0d8oh5 1KRrabb0hBUCWiZoeP4YTu4RJZUXoCQGW1z5xyn/Y9MWu8LfV8TjahVskNeyR9UsdoFw dklbVickX/pfWbeNXBEGBMXbARtGD++XKuvM92vL1sVom48FGZaZ/M1+0sUXHFJR4xqW OcOQ== 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=dsJG5yRVajyvwrzaHojLBwjYn3HsZCxZ2beT6Qli50w=; b=HNkAU3JTpoI0Xh5chBuS5PzxbFiOM30CvAT1vUrX3LIyEzXqe78Yxm2wQgv3yqcuDP GbR+FGyG7Qz3GI5I7QhDYG3zAqOZBaYrioHFRv6KNSsRfohtCwuad7Tu5F9bL0KkEVhF 37baperp8UXl+yMmVCWmd6ibLFC7+89mbRHXBqIEpx96/IOYy9l2ePHqZxgQeeQRG8Bq kTov+Ouzpbyixv5tbvMQJh3RK9BKfCWB9FTZ/164EOQaHNoyjmM7sc24XIbovY4jit6f nT0rmRkCg33tK2ZRsC6wmpoKIoTi/1pGNbQamfnnToXvJxKNyhfaSfDho2VcToH5+7kl XrRw== 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 r2si9933341pfj.361.2017.11.04.22.47.24; Sat, 04 Nov 2017 22:47:37 -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 S1751543AbdKEFpz (ORCPT + 96 others); Sun, 5 Nov 2017 01:45:55 -0400 Received: from a2nlsmtp01-02.prod.iad2.secureserver.net ([198.71.225.36]:51988 "EHLO a2nlsmtp01-02.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724AbdKEFpw (ORCPT ); Sun, 5 Nov 2017 01:45:52 -0400 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id BDjUeX8U0OdJ4BDjUeZkEJ; Sat, 04 Nov 2017 22:44:51 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eBDjU-0006Eu-KC; Sat, 04 Nov 2017 22:44:32 -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, Christoph Hellwig , Tom Talpey , Matthew Wilcox , Stephen Hemminger Cc: Long Li Subject: [Patch v6 10/22] CIFS: SMBD: Upper layer reconnects to SMB Direct session Date: Sat, 4 Nov 2017 22:43:52 -0700 Message-Id: <20171105054404.23886-11-longli@exchange.microsoft.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171105054404.23886-1-longli@exchange.microsoft.com> References: <20171105054404.23886-1-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfHInzG9HoganxEji0XFIN7xoEuqKZa4XBlKSa/qrrDpMlkjOy4Z5A7Ighy6xCM4m6M/04xKXnffq7FwVkSJPO7Lh1rXP736G8O9KiQZ/Fm6tC1TSfCbJ J5uMJrpbgS8+Ym0vO/kd2gcgqvrqmeEJWE/Pn9ryOx9WguD764fehIRX3HKtWU8p19AmC4O8wv4yBX7NCAbsrby5ocIU+/I6A3JVQsocjHCt9LDVnEz9jCwW C7kmmEcOTy/TFfG7FxFej/WG9ZoSqOQDf1duLJAGR6lUfQP/tAJSB3YotLZ/rcpsFtMiRMd+w7jBwhFwytx7MYJHH7qUtbHhDIOk0vtIXH6dy0QOnq+CBl9Z cSLai0b/G9AOynjKKJhX/kB5Vg8XAeZNDimRyLAiiqNJYCJBb6xBjoFUUNqKoIFXr1gjl3Q8QUVkNf/r6JlsMkmHxhHVkrXoEyFPaq6CPGHa00yEHI1/mrEi GomLwswJfCyTBmTu3Xn5+CwYNlnWGs9L3FTVog== 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 1585310927291809140@xxx Tue Nov 28 11:58:34 +0000 2017 X-GM-THRID: 1585306629485967748 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread