Received: by 10.223.164.202 with SMTP id h10csp545604wrb; Tue, 7 Nov 2017 10:19:30 -0800 (PST) X-Google-Smtp-Source: ABhQp+TnN721Ozi8MeCEG54nJHKodltjfB0NHd4eIsaYOUNuM2URmb71eCmxMW5EIIcf+wrxmFDs X-Received: by 10.98.155.10 with SMTP id r10mr21763241pfd.66.1510078770305; Tue, 07 Nov 2017 10:19:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510078770; cv=none; d=google.com; s=arc-20160816; b=m/jBKtBCnFZ7ERoJI/C0EeTv7xXOwg/JS/4ELpvNHBdO/8UqzHqxTSDWKwsRQgrYuR PDjp+hcVwtHMC+SafSOSDvR82VCccp9jMYoxTy8yunKu41KA1U5xLP+GMY/qZkrBf8fd H5tUvb5rIPIF7ivOm0El+clcXf1Ij+l/4GBy1clXXxK4lu1NblFmiJes00UdHMyDfS6c RZdU91T8MUiDNtwQ/Flmxn1tryLr5V5wBy4OUrQ5hSNjbBQ75bO0JaZ0383Hgk0mVWz7 biMo86mHUJaWP4WrperP/gNxcuDub70RSi+H2qE+NnUnG8fHKzAFF5OJkl7lJ8SZqj1J ZK6w== 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=K98c2nnNQl6hBBCqYLBCLT/MOohrZpQtjYl+yUeIrJs=; b=EUpxDZMR0FEOegT5vZSbXYAq26uT0bp75au+buldSs0APlQ/jB3NcxYS5oots1wCv0 6oDKut9I4ZrDHXd/pvUkgV9mdhMv8GLenqVG+FCBPSLhK03xyIYZCG8MfzxvrUk5M9gY MWR4+fCuwIBBIQocp4lzoV2x2VVuLxdOd7sObD0PBnWDSZDde0DUJgfRgfMjiNNf/6sM WPzAEqN3uHwIywOXanAPNpm+yZ0lqpT6IhjbAqolgn4LxTWR/eUy8heQi7GMQS7yjMxv 0QzGIwM7IALahRyQnVqPkvVkC1zBdNmtADDeVZVNRBwRqt/Zs+saR2BA/waYyRWPgI4h MkGw== 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 c2si1758737plb.787.2017.11.07.10.19.17; Tue, 07 Nov 2017 10:19:30 -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 S1755571AbdKGJAc (ORCPT + 91 others); Tue, 7 Nov 2017 04:00:32 -0500 Received: from a2nlsmtp01-03.prod.iad2.secureserver.net ([198.71.225.37]:47136 "EHLO a2nlsmtp01-03.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753431AbdKGI5K (ORCPT ); Tue, 7 Nov 2017 03:57:10 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id BzfreqGQCKv33BzfrejPjP; Tue, 07 Nov 2017 01:56:08 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eBzfr-0003Lh-2s; 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 15/22] CIFS: SMBD: Upper layer receives data via RDMA receive Date: Tue, 7 Nov 2017 01:55:07 -0700 Message-Id: <20171107085514.12693-16-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: MS4wfMMdhH5AVEt7Wy64WahBNKWcqMc9soy3/LLEOcmp03tQvQShtWn7zfWK8EnTr6fenuaDV2F5Y6Z4FBSXFubUUMyCR8Hnqy9x64Tugx2J75RvvUZLWIQq 4CNLwE/Sq8WWZkrqycDH0UXNyTcbPnpeb8dQU7DmzgaTuPzyFlpSAIyx7FoSUK7UttMaIrpPY79EaqvOAg4sMkqobme54K2ynELQmKVly3MHSCVs2a7YLezt bovkLtMxmFKvfaOdsWJlj5l5von7/xRbKAqMo2P8Uml6ULzyY1afU2MPZgF441iOeRjDonnqjcF3wyCyEPoxVoFIYyC6V71JT97y7H2P9B2UFFaLPuHVSeA6 iTunTS2hwasEh4cpdqS4QDx8PVoIO6JC+utl8CdGfVO3oArNXReVCcohQCsBMnhhXdsP0eOJPlJg4jEfIOl/BiPZ2V7P0Sg2f2YaLNT06bznjo0l4Pw6Qrl2 Ga/I52GZRR8GAepCKDWzc1KVDl2H6S6+zdkPvg== 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 3d74983..fcd01df 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -539,8 +539,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 1583533672532664396@xxx Wed Nov 08 21:09:52 +0000 2017 X-GM-THRID: 1583533672532664396 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread