Received: by 10.223.164.202 with SMTP id h10csp90773wrb; Tue, 7 Nov 2017 03:26:07 -0800 (PST) X-Google-Smtp-Source: ABhQp+SxhJ3iW3joBA/ikCyzjXgOPJTZ0sXz6vBHY1ocpNZXa4e51CHi86WazCLIS9hXi1mDTPB2 X-Received: by 10.101.88.14 with SMTP id g14mr18734910pgr.412.1510053967631; Tue, 07 Nov 2017 03:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510053967; cv=none; d=google.com; s=arc-20160816; b=NDVGYXkQTnU6hot2y8a9+kBY6RllesQ405h1XvKOWYTijXUp4WbAF2YW8KRtmgM8QL FPkrq6sDLYVrKFY0maOUCkAK1hhBIsbOUVPfMBdghi46Xf2XUH6urKAbN77ywycGFHzx h5OGrjkx63UokCMtzBBT3ggoVvHKAOqtaw1MFQoPWsO3MyC7z7xohjIquyU7RSK+xMZE nRXTDXB/AN6qJjWS2RIw+mcvmLQwhR9JVb27wft6x44qaim+VjoDxYimg0/ZQpzm0s8a +Sw5o4ynApsgUrHYvcVT+m8UHZqTmCAodoeP4uBuGVYNcEwy3BU4aTaw0m3ViQHiPxQa aktA== 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=om5qg5Qf3Kh9KmyL1ed9KYNrcVz5uMpvBuw8JHngW/A=; b=aXELdenAYpkQm9xkvzkIbPgbtHtjgZ1KIQxcTl21N3PftPvAyB0TTSbIjvaVYMwh0m 263Gh4dTRF/n4iTlTGBs/swgC2MwP8NQeyfaH5nEgOMAjzhc1/LHtm4dfmZdCsATBUYy v/SfSFlgBPeszDlOZUs+Ej1YJi6h0eTVXcWndISg45P4Fydtai26VXkY3SyuMlKD6f/2 HzeroBBHcqKK+ea+sL73CAHI3IgtcyzZ53M/UF8XrVTMrVxFjuiNHpr+O6pqngbcKZfO zWhAfnPcEhD4HRtDoP1olLkiDj9VyL3OKT9SAC6UfqRgz76G+8PrH+CwHXRoWEohUdHL eLCQ== 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 b73si948742pga.432.2017.11.07.03.25.54; Tue, 07 Nov 2017 03:26:07 -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 S1754880AbdKGI5j (ORCPT + 91 others); Tue, 7 Nov 2017 03:57:39 -0500 Received: from a2nlsmtp01-05.prod.iad2.secureserver.net ([198.71.225.49]:34032 "EHLO a2nlsmtp01-05.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753806AbdKGI5O (ORCPT ); Tue, 7 Nov 2017 03:57:14 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id BzfqeuESy3w7hBzfqe9z1s; Tue, 07 Nov 2017 01:56:12 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eBzfq-0003LP-O9; 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 12/22] CIFS: SMBD: Upper layer destroys SMB Direct session on shutdown or umount Date: Tue, 7 Nov 2017 01:55:04 -0700 Message-Id: <20171107085514.12693-13-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: MS4wfFCT/mPgTye3BW3ktJrf+l/H9rdEE7VYIYh656sFyg9TUlIRFwgEPBWg1nnfHPjcvG7gVGjYjFBrLIH+ujhpy92cP49fb0ZB0+ir81WEwOXhyv+wIxEE 5r2C9ChyHgUYjrHq/n6OA/gXJ5w36kHsPuMW2+kncGGOujOSEaw6i7VcpjMce6lY2aLK3BZ6/Fyrq8DAj85lJfMnmYYtXpjGjI46mAkynMp8ml8r08IVn3uk 9Jn5s304AYO7mj1lsSUOQIt7pW+CLKewtSK2lU1SI2D3yxxHZv6XZciYhCoA0GtoNrBIdOJUxd1GSqVMnMJRosEAjj3W0TrHD2mtfLaFZknw6374fmAEiokC V5inwELC9vDwzu+kZhFHGsu7cIf8vvV4oa6lVVClneF738Bq5vEgdWnNpovt0w9u31Ps5u/DaOaconTNx3hbEg41MaWDtdfeqCukZAzlZsdnegF8Qsb86xHA Y9IORibqB8x7/nv0bIV2ioBmUmf03BFVBuPp/g== 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 3ccd703..3d74983 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -701,7 +701,10 @@ static void clean_demultiplex_info(struct TCP_Server_Info *server) wake_up_all(&server->request_q); /* give those requests time to exit */ msleep(125); - + if (cifs_rdma_enabled(server) && server->smbd_conn) { + smbd_destroy(server->smbd_conn); + server->smbd_conn = NULL; + } if (server->ssocket) { sock_release(server->ssocket); server->ssocket = NULL; -- 2.7.4 From 1583447373393928285@xxx Tue Nov 07 22:18:11 +0000 2017 X-GM-THRID: 1583328137525009507 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread