From patchwork Sun Aug 20 19:04:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Long Li X-Patchwork-Id: 9911373 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 20C4B603F3 for ; Sun, 20 Aug 2017 19:09:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1174228710 for ; Sun, 20 Aug 2017 19:09:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 061E628752; Sun, 20 Aug 2017 19:09:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B147F28710 for ; Sun, 20 Aug 2017 19:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753779AbdHTTIw (ORCPT ); Sun, 20 Aug 2017 15:08:52 -0400 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:41826 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753627AbdHTTGn (ORCPT ); Sun, 20 Aug 2017 15:06:43 -0400 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id jVXad9xPeggvVjVXadRQvT; Sun, 20 Aug 2017 12:05:42 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1djVXa-0000oq-HQ; Sun, 20 Aug 2017 12:05:42 -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 Cc: Long Li Subject: [Patch v2 11/19] CIFS: SMBD: Define memory registration for I/O data Date: Sun, 20 Aug 2017 12:04:35 -0700 Message-Id: <1503255883-3041-12-git-send-email-longli@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1503255883-3041-1-git-send-email-longli@exchange.microsoft.com> References: <1503255883-3041-1-git-send-email-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfHNgPM0+bOsfF0oLHSxbvkrLusWxzUH9LUAU11wVEASpRkoBL9OfeXM8dbSphVyUYHawxJP6VoAfVEtGTZSst3z1bXqiZD2ulsCPs/Mrjr//AYjLF9d9 ptJYVTYj9ozTYtKTo6yj+te+3ZC3ttg/PMH1P4IwJe2HvBbLxXehBY05EmkClJMtvbhTUEDpHQYxtuva+5LOLoPLS1vGbpcFncimDUlLNe1lsM25R8S7bw3R 3gluKapLPY0ea6gPn+r5Q2RMLcj05Z13jfmQgNrl3uh3cGI8XWTadypyYYgTeIG4Bo2Y3rXTxFCgxPopx4NblNsHD+PhnScI9BrUwfSMykcUNhe7Y7qDp5oQ N5zJn9RVUHbrV3B2pta62KYLl4RDrMyIH1JBvZjmaH0nqdjsTYcNWbr2eOTAFGAObhG+2aBKFojn6g2i2qEBSZYW2abkswcetxFCgOK/NQ3Bk4tnQxVQ46/Z PNHzgdIvid/1pEPb Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Long Li To prepare for RDMA read/write using memory registration, add memory registartion pointers to upper layer data I/O context. Signed-off-by: Long Li --- fs/cifs/cifsglob.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index dc5404d..dcd2b63 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1166,6 +1166,7 @@ struct cifs_readdata { struct cifs_readdata *rdata, struct iov_iter *iter); struct kvec iov[2]; + struct smbd_mr *mr; unsigned int pagesz; unsigned int tailsz; unsigned int credits; @@ -1188,6 +1189,7 @@ struct cifs_writedata { pid_t pid; unsigned int bytes; int result; + struct smbd_mr *mr; unsigned int pagesz; unsigned int tailsz; unsigned int credits;