Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751622AbdH2Tcu (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 x-originating-ip: 107.180.71.197 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 32 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; -- 2.7.4