Received: by 10.223.164.202 with SMTP id h10csp102414wrb; Wed, 22 Nov 2017 16:44:03 -0800 (PST) X-Google-Smtp-Source: AGs4zMaalKq15TynlxyYXvdIhss6Ct8ImF8jsg2nCe0n5ZSMk3brqHBUlpsRcZOns4rlQwLlWesB X-Received: by 10.84.225.19 with SMTP id t19mr23523079plj.223.1511397843144; Wed, 22 Nov 2017 16:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511397843; cv=none; d=google.com; s=arc-20160816; b=dK391TubK9d25niuhVZ+O2QiDzIpKLKkZjkSM3udFrWwCXw3L+5NJxSdw8LCkbf2NN YuAVh33iigq1tLBJTupU21Rp231++PLZgvIPm3ftiNktXVn0SW56SDhMDWrVPk1Np8F8 B9DDN8kP3NuLAS+ZT2yvSekUbZNkQ8huvw1WEw4oX14fb8hQadct+l5+jGqgDblWN+Fj YgG7BYAsjuQbFgGsaxOd+nbveLGi+db1f7gkZAS7kmIdFK/PkgSzScTxW3PGl+/6NpYX ayZMmDPgYi7ZzXbCvhlZnsSn5TqRoE8x/kJgOGyQ5YxvZHefLwfA7aXnfAFZucxd3E23 b38w== 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=lGY+pKLHTAsEiZfutd7KxLOxQDZWLZRdkFzufafAO/A=; b=VQplPULMzEmJ252giRgZHOUTLFp8WJKbpoRD/fUaxu0wF5DdfNGsQQfvYaz2Dso0Aa cD7utsInyu1wYuoCwo+Y6QAoCL9swvaxQhYkLo6y8qVoKryJXTrjt2FsyV2gfpAHr/k/ HMrNXnYWXwpygig1Xb5K8vU1aItZzLG3PipW/OTa9aRXOearH3qtZtwG56DhlgjTYAHq Fk7m8ic7VOt5vYc4Dmjer/0IAD+K1/JJU5j4GY8azaWSWEElXSPGg4SIaPIeM/etSOST ecMv/kMpRTp8EqGKUCtI4uZIHPYd8PfTAxOABGKco30fEUJMRZLb/tz0aErpu5G6RAHL KW/g== 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 b34si5928232pld.811.2017.11.22.16.43.52; Wed, 22 Nov 2017 16:44:03 -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 S1753120AbdKWAmq (ORCPT + 76 others); Wed, 22 Nov 2017 19:42:46 -0500 Received: from a2nlsmtp01-02.prod.iad2.secureserver.net ([198.71.225.36]:46946 "EHLO a2nlsmtp01-02.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752837AbdKWAkR (ORCPT ); Wed, 22 Nov 2017 19:40:17 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id HfXce7fZXDI9kHfXceBrsJ; 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-0004TW-Ua; Wed, 22 Nov 2017 17:38:56 -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 10/16] CIFS: SMBD: Upper layer sends data via RDMA send Date: Wed, 22 Nov 2017 17:38:43 -0700 Message-Id: <20171123003849.17093-11-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: MS4wfBWp8Bgo3v5QBFXXHx3s76OZSsgr+EXmkwyBfAen6+RjxjtQSIksw8e9qqt9P48q8Gt/67fvS1mRz52nNTXO3DbB2gFd1eUA5rli1eQsmO6I/fSRSJ1V c4Ud6OzAdspfBDgi8jHwKp4DQlxl9cr+gfhI9ZTdtQJBH092yNksqKVhXR+6BgFJrH3TO2UPwrRNzxQ8g5l8JuaGcoF+wyf5Feepza9Z+YKnMF+W409bOcJ3 z0DiZNJUGlli3euHr35VISsz2DYIqN0PiIQgUA6fgF0unHaeFbtjSJUx9R+tq8RPDHE1mvEcoHzaU4PRDcX1aH3rUHdR89GobDYufP9toVjn9SnrHWmLhZY6 M7dc41hij2Wd6bWbAS8zIIWXTRJWt1/BhaAlAw3nkhQrVJSx0wO3MBKC4rvqcfsLUJe16aMPH1ZBmnqH5TiJadjmddOPYHRZa1tNsuyz5mctO3XDzPCMaRDU vyOXASYdXPq8Nv8UoZkKro5lXoRf9pzgfpGuiQ== 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 e678307..4001842 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 1584803482186693621@xxx Wed Nov 22 21:32:57 +0000 2017 X-GM-THRID: 1584803482186693621 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread