From patchwork Tue Aug 29 19:29:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Long Li X-Patchwork-Id: 9928067 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 968BE602B9 for ; Tue, 29 Aug 2017 19:33:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89CC928A30 for ; Tue, 29 Aug 2017 19:33:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E66F28A39; Tue, 29 Aug 2017 19:33:19 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 1B66428A30 for ; Tue, 29 Aug 2017 19:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbdH2Tcu (ORCPT ); Tue, 29 Aug 2017 15:32:50 -0400 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:52290 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742AbdH2Tat (ORCPT ); Tue, 29 Aug 2017 15:30:49 -0400 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id mmCmdUpCqarUVmmCmdYW0j; Tue, 29 Aug 2017 12:29:44 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1dmmCl-0006s4-U8; Tue, 29 Aug 2017 12:29:44 -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 v3 11/19] CIFS: SMBD: Define memory registration for I/O data Date: Tue, 29 Aug 2017 12:29:07 -0700 Message-Id: <20170829192915.26251-12-longli@exchange.microsoft.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170829192915.26251-1-longli@exchange.microsoft.com> References: <20170829192915.26251-1-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfHMnKf+O6n2RKQOWgJ0Eq3f7sfU2t2Uko4LAH0lLT6u6bcCxE6KIdzQZOzL8yGG+lC2CuI3ZDsTljvUdTpnBY8mjETdumnmTnGm5ngBiTnEXwRhfW/PA SH9QWipTYBq/CnITEqP93BXAOI2ccb8dNvjCe2BZuxy+Xmz6xYTrqoWjaMqv3eG80VU1QTuRlWCHWpXecfn3a2VAEnfFdr8HAyU2qOlrwl8UqT8fYezjtwbp QcD+3+6+z49tSAc366b52Xia0QguctxGdGptA6aYcOABYNyTnq2LLywrsDJ+6aHai0xhiSd3i+WatPAWW9N2swjF67Ut/RIjcDaBGzmiemOU18XuYgA9417+ fO0Wweyq9AuiQacF6e1kG+Oxa/IlXNXsnhPzTvDfwOZXiPv6OFkIjJJmPX6HLx/rUwu05DjKcCISLaFY8hb7hDK/9oRxC9h3TzgEBqmAYRjypsDJsaJPKbKA IJTvN7NGcjPKrlsI 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;