Received: by 10.223.164.202 with SMTP id h10csp102076wrb; Wed, 22 Nov 2017 16:43:37 -0800 (PST) X-Google-Smtp-Source: AGs4zManDLhk38jvnSMcbpAWyFljBGcv0WVbMsosfpjJpzSCjM1B8L3+udEr7gwgwAUfW4BAvufk X-Received: by 10.159.246.20 with SMTP id b20mr22720434pls.95.1511397817436; Wed, 22 Nov 2017 16:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511397817; cv=none; d=google.com; s=arc-20160816; b=o9DhUof5fkVgAN2aom9PR59im+2wzd/UPkUqZWihGMSiH7Y7hjnuCIt8nNo06S8iuo b+SNQF70j8ZFQU5XvlK2A2032WYTmn+UooLlyenTKjMSt46EES9OcW0uf7RkXc8KvYQX 7jjN3qi9xpdJZLd4QFkYEfhdIbznLLraAecyulr9WyaingjMACZluQjiV+72xl3tqqLh zX32+mUDNMd1fxTNLf05VDgkBH6re89uDkCYBsaRNKtn7JKZ529vs/Hi0myu26/NPI0W j1AT8hEV3zQcemsbGTbaudeSllAFsNCCrlm1+baimdpIEBpbh2Ltj9RkqexDbLkNmpqg AMMQ== 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=zxoGnIrF/Ur17znVfdzfiYLkCXtc5I87mV/AqwXgAcs=; b=p8ZvNXRHcYLnMfKNrkHF1A+RCVwszK9ygTuyY3tBbFDbdgifk9ha+BrW1xS0aacPr+ KRTJVI7ofLoiVuBPTN3jXhZY26/VcRmAJiT8eMk1YQb1KIicJnLO9tnuHZvTSwXV6DYs aYlIbR8zUOISgZSCV7tqg1ZXMwXMWW0zD8cADllFNj3catig63iDQet6+DccyFvAj5vV ctdNjSNO4mYLmx1Zd83fNJ8x2DBCvva7n0TiZsdh57FMHGc+Sc+RJiVJ9az7AMkce3Z0 iZdQN2FaHLs3bQ+EOvzi2oGyldzsgm1cCd8sKKhX5SqhoWNNXSWulfXX9MyHH8MeOXfE BC9g== 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 g3si15425735plk.558.2017.11.22.16.43.26; Wed, 22 Nov 2017 16:43:37 -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 S1752969AbdKWAlL (ORCPT + 76 others); Wed, 22 Nov 2017 19:41:11 -0500 Received: from a2nlsmtp01-03.prod.iad2.secureserver.net ([198.71.225.37]:49524 "EHLO a2nlsmtp01-03.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752852AbdKWAkR (ORCPT ); Wed, 22 Nov 2017 19:40:17 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id HfXbeuu2VNCjBHfXbeqkxQ; 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-0004TK-NG; 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 08/16] CIFS: SMBD: Upper layer receives data via RDMA receive Date: Wed, 22 Nov 2017 17:38:41 -0700 Message-Id: <20171123003849.17093-9-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: MS4wfCeGPnW/AzKIjCCopR0F02CWdY3rzOxTL4b5Ro4uNwta8PkRwWh3Li4MVEZHYAvxW1euiNnoJnsV1ou58Aw9BgbVnzWZH1yZpvPyUJpnLUigo+jIx+W+ 56+fWSa7QKJry/50Juws7gibODXdXnHXA2Q3eKyrahP/d+4IG16V5v3jBN9yrIXWHHGISYdo7PQecoXjWglWZgn1isEl4RqBD87yTzxSoLZWBhFcsrBUSCYU HnQBssl6A0ebRljEV++8/p7+Z+nUstvLi1E0wIvvMyjwgpepybJdgDGSxA2J0loszq1ZqBUpmC4AZpCAn5VJvcoQM3/JzpjsFSFnc5jboiUPfhKgZpND6GNo 1G2J+5n77pDOhHSTi6opPsr647XUoSHHl4OpZ4JVtie03Rc/F4Y+y5KtD6xxUDbHRQJEww1Pp0/xhJton3AUp7MO+5bFgdd6/f8Ephg6xXgtOBOnOqJp/uk0 437HPspElg7blwvE4PDB8HRleGhRdSPa6Hei2g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Long Li With SMB Direct connected, use it for receiving data via RDMA receive. Signed-off-by: Long Li --- fs/cifs/connect.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index d8bfa89..1677401 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -542,8 +542,10 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct msghdr *smb_msg) if (server_unresponsive(server)) return -ECONNABORTED; - - length = sock_recvmsg(server->ssocket, smb_msg, 0); + if (cifs_rdma_enabled(server) && server->smbd_conn) + length = smbd_recv(server->smbd_conn, smb_msg); + else + length = sock_recvmsg(server->ssocket, smb_msg, 0); if (server->tcpStatus == CifsExiting) return -ESHUTDOWN; -- 2.7.4 From 1584833916262089216@xxx Thu Nov 23 05:36:41 +0000 2017 X-GM-THRID: 1584833916262089216 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread