Received: by 10.223.164.197 with SMTP id h5csp686694wrb; Sat, 4 Nov 2017 22:51:33 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Qm6870jkPguOP7sz+na3nBgBgjLVEH7st03H7fWbvZ7fbYQS8/AzDLMtSzRYFJeJ/L+iR+ X-Received: by 10.99.185.79 with SMTP id v15mr11811457pgo.258.1509861093525; Sat, 04 Nov 2017 22:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509861093; cv=none; d=google.com; s=arc-20160816; b=EZNbGMCgkIbSAiOBSrllH1XIF7Pnxib3GttP6ZTrw8YkEu0KQcFyRmqxdhHsL8Fc5q PTkGtFvMsB1G1Ki/dLv9+nmL1I3FOvxtR2D6ovj+OiLe0Zber8wHMB67jmWfok/aBMIB gK/hd6Rnubem4H07PaWfkTW++SjmSzSq+/1YiCnKOsx1Vvf0patkNPwVK+R1XblaFFty H3/pHX9CUTkJ7uWiOg6uic5V0yrfb7eKqMEOYFypEbOtmD7cPEbpVT2tc0sW8T2CJGJm 2k7hgqoFgsXkcZE9/PyGBTWGrmxGYv/sK+bkY/LX0O4MmBJZiJvJ2JjEzKgkOswrnapk RpLA== 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=jF35yyNkOrEBLw+p/MmbPhIAUdf8SFddw6V7TZqn2bw=; b=SOvgsh4Z3+PpXaK3cTA8jmx0w0wvqjEfrZw17JSt94rUapVXPBjaTPgLV6WehTpDUC tu1KwE+6ta4TQ5tFhiuCUsOqyiS9XzWdEgYvXiXN8x4dmPQm/y/WoPHPsjTd1iLLyh9i I1RjV5oLk2MgcU1i1q9sPs8+p8zWzl9lXLdaCZt/43O4DVQoLODGyaDdN9IVr97qMyM7 5pmIGyTvX5TCf4IR1+bJGQ+CWyEs6eB71adaxJ8IofJtNjJ8dvK7IhUmM31Ovtd29n8W FBgBzFI4UHOozi1igVgh/YxMbleSN6gZD4h4nsYhcZVCtj08DAoxhsd46+/VViB63paU Xtfw== 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 c25si9116715pgn.808.2017.11.04.22.51.20; Sat, 04 Nov 2017 22:51:33 -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 S1753213AbdKEFtH (ORCPT + 96 others); Sun, 5 Nov 2017 01:49:07 -0400 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:55852 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750975AbdKEFpx (ORCPT ); Sun, 5 Nov 2017 01:45:53 -0400 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id BDjUeEGshV6DQBDjUe8bQJ; Sat, 04 Nov 2017 22:44:52 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eBDjU-0006F6-RF; 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 12/22] CIFS: SMBD: Upper layer destroys SMB Direct session on shutdown or umount Date: Sat, 4 Nov 2017 22:43:54 -0700 Message-Id: <20171105054404.23886-13-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: MS4wfOv9aqhE6n0GWlVUcvvzu0V4zHH2RyX8Gx2AYW6wd0R5gVw/bij2dhGZLaMwSCgNobMMK1lE7wdmEPj5Ihj7OyK2fY1iZQt3GiPLUrfhlMSaF008O16m YKIoRYIXXwSmEbRVZ4uhob7+U0tEk3tUq497WQrEFydPmj9/EA9OwJ/aKvUmLOBHgyXLx5T8MRFLna+cMiKFnpN92Jvlszn59nIXgXauuLd5m0yaqEoAd30p luaH+SDDUuxuQzguTVAf4hwvHtMf5A0zJkKxVl7pmfcg3p4bFBCA1MCCBmjoIQXPVwqx0liic7sYoC/CquNHdTPlgzAc09xP+bmeVc7NdYy9C5TkA9F0gk3c u4W3Cmvbtf82QA31O4Ij4M17MzuKLkfaxsNIcfUuZnhwjAh7DGfnJSLCmrxPBeIL1U/nQfohglGpoJJbJQ/7/ai8L0Mh4L40L2/UpievXzx0/elFIYivVRwX rwMLETK6rw4aQ+UZdMZZzxEmRNWwTEG4JCDVqQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Long Li When upper layer wants to umount, make it call shutdown on transport when SMB Direct is used. Signed-off-by: Long Li --- fs/cifs/connect.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 8ca3c13..23f10d1 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -707,7 +707,12 @@ static void clean_demultiplex_info(struct TCP_Server_Info *server) wake_up_all(&server->request_q); /* give those requests time to exit */ msleep(125); - +#ifdef CONFIG_CIFS_SMB_DIRECT + if (server->smbd_conn) { + smbd_destroy(server->smbd_conn); + server->smbd_conn = NULL; + } +#endif if (server->ssocket) { sock_release(server->ssocket); server->ssocket = NULL; -- 2.7.4 From 1583368737262729075@xxx Tue Nov 07 01:28:18 +0000 2017 X-GM-THRID: 1583367250769930836 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread