Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752080AbdH3AtA (ORCPT ); Tue, 29 Aug 2017 20:49:00 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:34457 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbdH3As6 (ORCPT ); Tue, 29 Aug 2017 20:48:58 -0400 X-Google-Smtp-Source: ADKCNb4wVKWUgscwmToSYXB2DYhR8XN6NbCrjJZ/vcQN9PzUmLFNQ+Sxs97kSns57wZRaQ9F9dFoSTfrnDppTTXD1Ho= MIME-Version: 1.0 In-Reply-To: <20170829192915.26251-12-longli@exchange.microsoft.com> References: <20170829192915.26251-1-longli@exchange.microsoft.com> <20170829192915.26251-12-longli@exchange.microsoft.com> From: Pavel Shilovsky Date: Tue, 29 Aug 2017 17:48:56 -0700 Message-ID: Subject: Re: [Patch v3 11/19] CIFS: SMBD: Define memory registration for I/O data To: Long Li Cc: Steve French , linux-cifs , samba-technical , Kernel Mailing List , linux-rdma@vger.kernel.org, Christoph Hellwig , Tom Talpey , Matthew Wilcox , Long Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1647 Lines: 45 2017-08-29 12:29 GMT-07:00 Long Li : > 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 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html The same thing: let's not add structure fields that the code doesn't do anything with. -- Best regards, Pavel Shilovsky