Received: by 10.223.164.202 with SMTP id h10csp101292wrb; Wed, 22 Nov 2017 16:42:36 -0800 (PST) X-Google-Smtp-Source: AGs4zMbEpA+EyUUHRljqIcSkC21+GwnEaBF+UiXD4eCmjaMlyaSQk77UqhTO+CGzyfJ8QRYZ06VG X-Received: by 10.98.152.25 with SMTP id q25mr20625796pfd.58.1511397756275; Wed, 22 Nov 2017 16:42:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511397756; cv=none; d=google.com; s=arc-20160816; b=VmtmEs8doiKXpNBEtSlVdYLcXgxP41U43U2nTYgVlzlJklEtLkA1WjpktSAFLz6OZt hKVSpZK6OsIW4casLhx9be+fHjfKj65eTOuhEcs0B5F1dLcP4kfIGGHPDcjRfy2jt1QI CkHsBbYzRNILIkB52B+bb/QDDxn+TJVgznrt8WVyjg70o4cp5Tjn0df3EgoNG3WMS1Gy 297cPoQY03aXrtpz4Ita+IAu2/uqjLPHtTF/nCQHzaVrie2pU+Vemhb3S1Tjhuyn4bkj nVbvmre3UlSwln0VpsouvIhhj6byrHwDNB4Q72h9E1fP3ySZ4s/O5BedgrrSvZ4/YA/d YQTA== 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=Cmpi0opaLDHmYYyw8irTtoPqkgxPZb87+lbty6g3UcE=; b=yhP0e6cbdALVkhJDDUVlDKoPuFCegBYyfVVismtnmEh3vtFjwfvY7EhxUTroOr0x/1 Bk7A8Jb9frY+Fx1QSJK3iacB/IYH1klKkcOfWx/SO0ucV70R3neARRH8/So3XcOhu8ye s1iiCLLmQz6m1MO/yR0t54F0kFUn6xEfeUlekBecdOkiwfbA2LiLOl4jVxYmtrU9AK1G yY3BCkZcJARG/zMMAgpILrYRHlDro7f85PPmQ3NvpMqq/8ommjHmZK8bsIk3U4PxHZAa XBHkGeUwmsliFZWUQlH8QpFLimRuZzyBBPOKY8Kv8VT/ja0eIutC7ccFSQnecJCZwj3B R0ZA== 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 f15si14881612plr.724.2017.11.22.16.42.25; Wed, 22 Nov 2017 16:42:36 -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 S1752870AbdKWAkU (ORCPT + 76 others); Wed, 22 Nov 2017 19:40:20 -0500 Received: from a2nlsmtp01-03.prod.iad2.secureserver.net ([198.71.225.37]:49490 "EHLO a2nlsmtp01-03.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbdKWAkR (ORCPT ); Wed, 22 Nov 2017 19:40:17 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id HfXbeuu2CNCjBHfXbeqkx7; 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-0004T2-DA; 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 05/16] CIFS: SMBD: Upper layer destroys SMB Direct session on shutdown or umount Date: Wed, 22 Nov 2017 17:38:38 -0700 Message-Id: <20171123003849.17093-6-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: MS4wfEbZKhQiHN8OLB28r3CvcgqLLfjDxLESX+ahKVs3OiynOvtldvmSlEp1r2OHeDxi7RmbX3+k5HBORgrVtxUS5jehYlBlPauU1hMxdwdTTIBbZXi19vxo i7yguTPDS0OKPvf/CPDuN9hqFGKQWQipim7LZJkcYqOgmHhIoZg/PPGuEsi1Lh+prktIMYtwis153HCUPz2MTsD8sWKgNgvJt1qxvJAK84O9zv/Py4m0vCeK W3aFFxcRBypKIuxmVYPuPwnmtvoZVLjrdfgvpJhEtXjVA58Ejnxk7JJYIrwpzxbFR+kkUIrV8Gf2yoeIFAj+KVQ67pgCe0FHy+1c6kOKqeQ1l77JIVbJnFY1 CzVpLjpHPqcgcMjQncpSFpa/ijYwtbLyZE/lSTfjxMci2lNPgOvZ6juKtAKqZmLE9kAHq32KQh6tM8rd+0SuW+3OOkcV8wCdQM3mC+l9zDScZj+TDq9BVvkt 7QZ0pPjh0m6I+lHiqJFfDMM+zqjwLNXHr6jBBQ== 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 fc46066..d8bfa89 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -704,7 +704,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 1584934607699025342@xxx Fri Nov 24 08:17:08 +0000 2017 X-GM-THRID: 1584934605454181804 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread