Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752082AbdH3CMg (ORCPT ); Tue, 29 Aug 2017 22:12:36 -0400 Received: from mail-by2nam03on0103.outbound.protection.outlook.com ([104.47.42.103]:45375 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751514AbdH3CMe (ORCPT ); Tue, 29 Aug 2017 22:12:34 -0400 From: Long Li To: Pavel Shilovsky CC: Steve French , linux-cifs , samba-technical , Kernel Mailing List , "linux-rdma@vger.kernel.org" , Christoph Hellwig , "Tom Talpey" , Matthew Wilcox Subject: RE: [Patch v3 11/19] CIFS: SMBD: Define memory registration for I/O data Thread-Topic: [Patch v3 11/19] CIFS: SMBD: Define memory registration for I/O data Thread-Index: AQHTIP1SFbHmtAAkW0esnuktJlvQXqKcEYkAgAAXNpA= Date: Wed, 30 Aug 2017 02:12:32 +0000 Message-ID: References: <20170829192915.26251-1-longli@exchange.microsoft.com> <20170829192915.26251-12-longli@exchange.microsoft.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Ref=https://api.informationprotection.azure.com/api/72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=longli@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2017-08-29T19:12:30.8740026-07:00; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [2001:4898:80e8:c::735] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR21MB0126;6:pw1V/YkqZe5FKKKmkCZDhqTzAD/0TEbotHu0EuJr99aryJTm19B7I82xkTYyCUqnSXL2XnxBmvYxNaCAlbBLUiVwsmlxyL2CA26IrlOBZ67zNMUGfLyuNVv5N2BvQhdvNRDiGCS9EdoZd/6Ybyl4fgn/+MTlFmlbvfxn/IYxtFnJXeXlsHZ4rfMXoVxB0jixlf1gNj/lvDS+EDpV7vQEjubCA36yFbEvNn4JRTovLN2jfLG2LcbOKY6a94aBqBOU3omavdnsUStOO/O64RokYCmDHtIUXYmBgnrGeKK2V8Ejy88IUOYagNjQIBQL4MDmTIlvQFGqPJKgFLQw2qkIvw==;5:ceuSq0uw704sqq1u3z9fTKJqACoOheFXseBXjChLCXRBUoVgr4eXDKLUise4Fm9znvPBGnRsGNlZeTmt7tsdT39ru8d327HjSch6yRO2zKLfFma9+YpNJBGOX5dKDxuqSVfVLRTSN+AN+XBfEqvuFw==;24:wbepjLXEgEP+vSiiWfAmQ31f4tZYjv048BCf7LBfGpApXrsrgsoaKBbMrQnaJCmCXDMOqRsx0zvypwGVpNO3GhhBVaaZE82JPTEYShl+Oro=;7:MMygZL9oPT6M/oYtFDoGORMlUgQf74lyb3xbDvRMf+T/iL5jliJhEz1wXAOaYlvwBlg8Qf9nIfGlt+/1oV01WVsphvYUr8x6dcRQLrWHIXngDIe0Qn29tpot8MsJSIWE93RJDdIe2UIfHG2l4A558Ax1rHgLsm23+4sycWEMdTkIhLfn8AP3D/B0RYBhllrlwqFOcAyQ2+nomnEUQfbWzGYESvGRKiWm9ectiuwuD7U= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: c58ecf62-183a-4fd8-0799-08d4ef4c92a7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:MWHPR21MB0126; x-ms-traffictypediagnostic: MWHPR21MB0126: authentication-results: spf=none (sender IP is ) smtp.mailfrom=longli@microsoft.com; x-exchange-antispam-report-test: UriScan:(89211679590171)(9452136761055)(189930954265078)(140211028294663)(219752817060721); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(61425038)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR21MB0126;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR21MB0126; x-forefront-prvs: 041517DFAB x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(47760400005)(199003)(377424004)(13464003)(377454003)(189002)(6916009)(1411001)(39060400002)(53936002)(55016002)(99286003)(305945005)(54906002)(9686003)(6306002)(6246003)(107886003)(2900100001)(10090500001)(74316002)(53546010)(110136004)(86362001)(5005710100001)(8990500004)(86612001)(229853002)(81156014)(50986999)(3660700001)(81166006)(8936002)(3280700002)(102836003)(97736004)(54356999)(8676002)(6116002)(2906002)(76176999)(7736002)(106356001)(68736007)(105586002)(966005)(77096006)(189998001)(6436002)(478600001)(10290500003)(25786009)(6506006)(4326008)(2950100002)(5660300001)(101416001)(14454004)(33656002)(7696004);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR21MB0126;H:MWHPR21MB0190.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2017 02:12:32.1649 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR21MB0126 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v7U2CfRj001057 Content-Length: 2716 Lines: 75 > -----Original Message----- > From: Pavel Shilovsky [mailto:piastryyy@gmail.com] > Sent: Tuesday, August 29, 2017 5:49 PM > To: Long Li > Cc: Steve French ; linux-cifs cifs@vger.kernel.org>; samba-technical ; > Kernel Mailing List ; linux- > rdma@vger.kernel.org; Christoph Hellwig ; Tom Talpey > ; Matthew Wilcox ; > Long Li > Subject: Re: [Patch v3 11/19] CIFS: SMBD: Define memory registration for I/O > data > > 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 > > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvger.k > > ernel.org%2Fmajordomo- > info.html&data=02%7C01%7Clongli%40microsoft.com% > > > 7C1a02c615906e4648835c08d4ef40e655%7C72f988bf86f141af91ab2d7cd011d > b47% > > > 7C1%7C0%7C636396509394018449&sdata=yjvt3xPYPMmBp8nRiAC%2FYUOOs > ganvPd%2 > > Ff6Y1uZtbqGU%3D&reserved=0 > > The same thing: let's not add structure fields that the code doesn't do > anything with. Okay. I will fold the patch into relevant patches. > > -- > Best regards, > Pavel Shilovsky