Received: by 10.223.164.202 with SMTP id h10csp546393wrb; Tue, 7 Nov 2017 10:20:14 -0800 (PST) X-Google-Smtp-Source: ABhQp+RLTTyItn+P+R//ANPIsu/MXjyMNhULZJa+MSdNMt/z14k+Txoj1licZWXfPMUv8vBQxceK X-Received: by 10.98.32.12 with SMTP id g12mr21523263pfg.196.1510078814198; Tue, 07 Nov 2017 10:20:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510078814; cv=none; d=google.com; s=arc-20160816; b=xMR8Y3Dmogfb+JUAVngZMkHTbt3Km3QCiygqaYLR/THpx8o0tRPOoEuke7nqepz+gX NzA4Rf9AFTouVnW9qcearF7Oj7DJyhtkgPPckYEdWVslBdO2GtzrHlgBm4mGFaKiAK7R JhUd6kkDZLzBrckIc+mdW0sSlg1ntOjRdM1v8WKR/DJDQIrQKsNTe4KuwG3TdlndLiOD e59RnK52rS+anFOIvewDhJmbJtdgcXn2wrTdXG5MY2eUPan5Sf7q4IA38CxkiAqAg8l3 ZzCZPnLs8OpsWoVxcnMC7kmDWscYCIc8PG06XoIaO/19TcjzzjRydpJPGabUkFYfSBzb z9RA== 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=JsNVuuCS4PlelOw9lJeMzi+L2E9PdcPfuBXLYDN9rOk=; b=ZahIsNvakhiYMa1t2Spw4Kbm4kCpX2u4CWo0x6tAZJqv5pwfG8UuITY7sESna3l5Kl b0YSUrx46FMEwPe7NOloSlu+cHRD3Jw51z7htHIAYQKtLFookkwGr00zIZCnP3DqXR47 J0oFLw5j7knlEEVjpdY/7/RAE1+K0P2FgzA3LZfDic4cMlnxox332FWSroufoEcUuBiY 20KEO4Lkv+geM8CGd5opdT1LURn5Wzmz18rtpbCUoQfLQxGsWjlpM7Mz0ezdOpwoBy6N FgUHUh29PJP/xGsRbXYNPhJJEtQaEkCGSm57qSZXG7Br20m/qoI1fHiDYp5Ef6JvO767 fMdw== 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 s5si1707394pgv.479.2017.11.07.10.20.01; Tue, 07 Nov 2017 10:20:14 -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 S1755731AbdKGJE0 (ORCPT + 91 others); Tue, 7 Nov 2017 04:04:26 -0500 Received: from a2nlsmtp01-02.prod.iad2.secureserver.net ([198.71.225.36]:34046 "EHLO a2nlsmtp01-02.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752961AbdKGI5I (ORCPT ); Tue, 7 Nov 2017 03:57:08 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id BzfrebZAROdJ4BzfreYopf; Tue, 07 Nov 2017 01:56:05 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eBzfr-0003Lt-AR; Tue, 07 Nov 2017 01:55:59 -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 17/22] CIFS: SMBD: Upper layer sends data via RDMA send Date: Tue, 7 Nov 2017 01:55:09 -0700 Message-Id: <20171107085514.12693-18-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: MS4wfMbVQM/4DErN7wFjVqX4E3X10Sj/jsf53ZEPu9ccXx7hN3dcrg7T2HFHyUUQ9tXNowtxF/AXEL6p+H1D1x068s0RzvHAkNzDjitLGcHQbjxcfDv64l/X RnIP+cXgGRA7t6laNjNjlzBC7AicKexn1TmwptgvysHqSUGTbwjHJnFYQffkngSnA+HST4Qsi865pda/oowKmc1X1h4KgpCvud+9TmJQHQE0KwX5tA33xPOk VsIyRxzy04zXJDENDHrwdAM9QyqrWICxR9hmEeY+BHZUUfX/u7w+W2jtzl/Z1e+9REBil7zDDLwO2b+YovG8tTTf9LqXniUNNLUYK+FEYs1Vlk0F7So3DRiM tfSvn1r1sfEIUZulP/cTc0qUeitSwNJd7ms+jABlkUm8ldvEI3+13vtwUp4A3X3HLjqFqJp7sZXB1l7OEcaROhDKs3gdgCxblzs0eDu5xMd8Ka9cuDajCNf8 VlqscTrFD6ZkRd3bS0BmyeHl0kbydCGNp6C0xw== 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 sending data via RDMA send. Signed-off-by: Long Li --- fs/cifs/transport.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7efbab0..bb9ffdd 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -37,6 +37,7 @@ #include "cifsglob.h" #include "cifsproto.h" #include "cifs_debug.h" +#include "smbdirect.h" void cifs_wake_up_task(struct mid_q_entry *mid) @@ -229,7 +230,10 @@ __smb_send_rqst(struct TCP_Server_Info *server, struct smb_rqst *rqst) struct socket *ssocket = server->ssocket; struct msghdr smb_msg; int val = 1; - + if (cifs_rdma_enabled(server) && server->smbd_conn) { + rc = smbd_send(server->smbd_conn, rqst); + goto smbd_done; + } if (ssocket == NULL) return -ENOTSOCK; @@ -298,7 +302,7 @@ __smb_send_rqst(struct TCP_Server_Info *server, struct smb_rqst *rqst) */ server->tcpStatus = CifsNeedReconnect; } - +smbd_done: if (rc < 0 && rc != -EINTR) cifs_dbg(VFS, "Error %d sending data on socket to server\n", rc); -- 2.7.4 From 1583495925411137693@xxx Wed Nov 08 11:09:54 +0000 2017 X-GM-THRID: 1583495925411137693 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread