Received: by 10.223.164.202 with SMTP id h10csp88829wrb; Tue, 7 Nov 2017 03:23:57 -0800 (PST) X-Google-Smtp-Source: ABhQp+T1H4Q+BFegJX6ymZA/Jboz9ZUeCFItuc6wqRRavTbwFSt5mZK2pwNHBhZZqlEnS8b+8ZFH X-Received: by 10.98.162.26 with SMTP id m26mr20550942pff.0.1510053837276; Tue, 07 Nov 2017 03:23:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510053837; cv=none; d=google.com; s=arc-20160816; b=UlwnIxE6FGSc5yGor4QDsG2TvbRIiQAOGRv26uK4du6H3jzT16tROw3VUiZ+2iExqb p83mh8I5+SU2E6Hi3rJBUmMwIBjsICrQg52T2aYuPhNApQieVtF7wlAV8fVIJXv0bqnM 3T58McUr/sMRS61+a3Mudxu06CnLPkPVAP4mwlKKf/hHKXrTyLzVGsn/Z4mdak8Br6cV tcPW1DpZXliRioE4mxekPmqgulvTN9MhGxgOUzXaVwNMsEaj9Ajp52+92WIg3/6zi0Xv s6dsSuivA3oMkowt2tDJvg+CssihjfSYri9Yb0F0eDLlL3sbWlJ65yHnJNxLitdvbFwA pZTw== 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=LGPh6iaDzJJSCJP9+BJQXCk3KMHtcA4r+fGw/3k/s8c=; b=lxeAuOzDbpxfdueyWyAPYW+z+VZXwziWHcjfpV0+oKEraY+eJ9DE6z7zRZ2GHERM/T 23O1Oxmbmj2nIuVUmbKTBVKhckCVxHORxuW/Kx+HDDdFLWN8Mtw17UjvtMOlmHKSZ61X PHRjHg2jLBa+3Q/slN2hohR9D9iFnuyYG5ZYMSUpsi0K0DU86A0KZY+No8Yl6H1Xjo+/ ZtiDoQzmyrUSn54N+hfCYQ0tpvMgJpS8XWuDTy+qHtj92IM2WWiftsafzrNrKYVCsfCE Mygs7Aac19s9neLaOQS+tTLISx7P1RmMr0Yl/GYLQjFm27pUyb+Z33i1kbOEXYmY5xcm FgTA== 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 v11si918560pgs.347.2017.11.07.03.23.43; Tue, 07 Nov 2017 03:23:57 -0800 (PST) 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 S1753691AbdKGI5L (ORCPT + 91 others); Tue, 7 Nov 2017 03:57:11 -0500 Received: from a2nlsmtp01-02.prod.iad2.secureserver.net ([198.71.225.36]:34052 "EHLO a2nlsmtp01-02.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944AbdKGI5G (ORCPT ); Tue, 7 Nov 2017 03:57:06 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id BzfqebZ9aOdJ4BzfqeYoow; Tue, 07 Nov 2017 01:56:05 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eBzfq-0003LD-Ga; Tue, 07 Nov 2017 01:55:58 -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 v7 10/22] CIFS: SMBD: Upper layer reconnects to SMB Direct session Date: Tue, 7 Nov 2017 01:55:02 -0700 Message-Id: <20171107085514.12693-11-longli@exchange.microsoft.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171107085514.12693-1-longli@exchange.microsoft.com> References: <20171107085514.12693-1-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfKipmAxzaSlp55LBvBksFMnxPMQdG6tce0Ixn5uJyuzfMTeqNVvXxCp76VOOd7eUlpiUEA0woNYacwMxi8UhcZzEATfMY43kHUw8iyMsctgWtqI6K7bt iIXbOSrad7KDTHKphDTODRcliR07nw9D+TGCMF7LwZIEtHkjwuy1t/xsHDfV1tPlolIN80WaeLWiCk1PrmHJWGw/IQzrDCCfVGJsl6VtpakehnKuv8BbOaW1 NtcNO2LnpTqOBYfmiNNvGRKHl0zyG+TVgFccUOWLYM8wArjceKBCB7n7P4h0aFEyLZ+P6NapJe5ZItVCMaDOquxX0DBtJ39UTOG22QvtMsw+Hvivm4CVYbrj zsVvIaQyhPV6C7XQF0AjtgDSU6st5ube6geb3ucMM688OVLC6H3+Zy81D7p3UkebyR+kT74MqbxrDt/h0naYRpVVem+FEzvaqe7UBmf8GR/1eNu5xi8sfA7W gWtlj310c04I6ulsLLMJOhK9di1fq+X1sEVbog== 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 75eb50b..3ccd703 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -404,7 +404,10 @@ cifs_reconnect(struct TCP_Server_Info *server) /* we should try only the port we connected to before */ mutex_lock(&server->srv_mutex); - rc = generic_ip_connect(server); + if (cifs_rdma_enabled(server)) + rc = smbd_reconnect(server); + else + rc = generic_ip_connect(server); if (rc) { cifs_dbg(FYI, "reconnect error %d\n", rc); mutex_unlock(&server->srv_mutex); -- 2.7.4 From 1583307415426716099@xxx Mon Nov 06 09:13:37 +0000 2017 X-GM-THRID: 1583307415426716099 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread