Received: by 10.223.164.202 with SMTP id h10csp100717wrb; Wed, 22 Nov 2017 16:41:46 -0800 (PST) X-Google-Smtp-Source: AGs4zMbIH0OpDd0hftqz+O/ODT3cTxTxmVdsxfNVt8k1V+c3SJLIYiY0JESEBElzjnVECqvtUmRB X-Received: by 10.84.248.77 with SMTP id e13mr23631497pln.200.1511397706291; Wed, 22 Nov 2017 16:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511397706; cv=none; d=google.com; s=arc-20160816; b=wRSB/wM+SEqC3nwqK3iPqpcDk9MvUDepQ3Ya2p+EFqPwTsnD5skQuoLlq3DRcWrDAf D6fYNMs0VErV3rdAcQaohsSnF37kKBk+ZuE8igkN1JJb62yFs0jLuJeYNfIMKkwDeqba MIemp4HV6/r0xpIYw94oCgJgP5h/BrpwC6SlE7cxctNNORUAf4FmcSNjqsEYHoOQkKIC 9mZ3/6FH30kasLZQDcHOqlQcGchSM1dBCZawcSF0hP9zk3/wZXx6m9mCpJ5J1Jzy5Plt JprPbipnTwCITNj9kSyP+R/v43zDwqWCVOPRJlYiaroTn9t9i20f4F5IFFX2xIeI677v eHJw== 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=e5Qwgk1oG2RTCRkvn6IHfn/TB4zCtgcbTVbHPmR40UQ=; b=BlisRHxMNrnecBpueJGkC0nHatZJyYr1EG4IppFIW/LOhCg5ERAduilAVLkLJauqJ/ LX7HTSkMQCGJorPKugMR3jXZYiEP4J0CYyZ8KUgaTXv1/Tp9zii2D944tPRKjlRcrPAb 5kMC7ALT+djEX+u/FPyH6UDGJ6kiQFGnCGpymG9QDFNyZyGbIgWu/ocmS7KxInzE3fiM gZ9aC7KT9lbMWqu3ennqWQN4GDTm3U6q3ZYXRpZgwAVO9b63qsTZytI9T9DoWtejaESU v04Y+3bjK6hS0hfaPcU3OApghHHssB7XuHMnIFukSnGynd7AL9hSWjudHpI/sEHQDwz8 yXuQ== 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 t8si14304785plz.487.2017.11.22.16.41.35; Wed, 22 Nov 2017 16:41:46 -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 S1752917AbdKWAkY (ORCPT + 76 others); Wed, 22 Nov 2017 19:40:24 -0500 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:39096 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbdKWAkR (ORCPT ); Wed, 22 Nov 2017 19:40:17 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id HfXbe4a0sgsKFHfXbeQWzn; Wed, 22 Nov 2017 17:39:15 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eHfXb-0004Sq-6N; Wed, 22 Nov 2017 17:38:55 -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 v8 03/16] CIFS: SMBD: Upper layer reconnects to SMB Direct session Date: Wed, 22 Nov 2017 17:38:36 -0700 Message-Id: <20171123003849.17093-4-longli@exchange.microsoft.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171123003849.17093-1-longli@exchange.microsoft.com> References: <20171123003849.17093-1-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfMx17fB2IM18OhHya7nSqeI1TU27HfLb89W61fSKlWSryyU91KItac6cYa3RjtRWcWS1hLH43/nB3EYvgbOLFL+rG/wvKSYjcdRQb27fSJfHxKxuHj74 sWq6oBYPzdXSY8BV6sAOIBzJwyNRx9BQBzsImZMtQPAf4pfGGHc2u/Y+Bt0uauz4/sFJeUvAnFfDo+4OW3nsOne+oPOAcPbO6TTTYuCIjcApUz6Pse1zm/Xx p5n18XyDBAX6qDnuSz0EL8it4SIYMsLhZ6KfKhCtgF4d4JncJu95Wv6vumDYdik1AO95w4be+TAsgParTJ8O5ToBpj9tHjYFYv52Q6ELXk2kqViRjY0T349M hzKqvKKbfyxMM88BLvVhQjCFpu3BDT5kyj7+GdyC19r2jgrs+GP3KLxSlxifzja+0Vg5DW0ofokfxFHVe/UBwRbqBQ2NlP17OvP0/Ei1KBBg1xG31xqRriBP Xjxgj/vgLIsoc+GwxWjqFZcQ9vl60OS257IG8g== 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 fafaecb..fc46066 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -406,7 +406,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 1584827884630898061@xxx Thu Nov 23 04:00:49 +0000 2017 X-GM-THRID: 1584667180237862520 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread