Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754398AbbGUIqP (ORCPT ); Tue, 21 Jul 2015 04:46:15 -0400 Received: from mail-am1on0066.outbound.protection.outlook.com ([157.56.112.66]:28655 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753805AbbGUIqI (ORCPT ); Tue, 21 Jul 2015 04:46:08 -0400 Authentication-Results: spf=none (sender IP is 193.47.165.134) smtp.mailfrom=mellanox.com; nvidia.com; dkim=none (message not signed) header.d=none; Message-ID: <55AE0309.4090606@mellanox.com> Date: Tue, 21 Jul 2015 11:30:01 +0300 From: Haggai Eran User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , , CC: Christophe Harle , Duncan Poole , Sherry Cheung , Subhash Gutti , "John Hubbard" , Mark Hairgrove , Lucien Dunning , Cameron Buschardt , Arvind Gopalakrishnan , "Shachar Raindel" , Liran Liss Subject: Re: [PATCH 3/8] IB/odp: export rbt_ib_umem_for_each_in_range() References: <1437159665-6612-1-git-send-email-jglisse@redhat.com> <1437159665-6612-4-git-send-email-jglisse@redhat.com> In-Reply-To: <1437159665-6612-4-git-send-email-jglisse@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.0.52.254] X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;DB3FFO11OLC003;1:GAcQvsauMXct6MywhWe8I1Un+R3FBuE5KBJtIp5PjaAUfkm6bVcGbidp+tT2+88Ombh0ML6g0Q0pXg5297Mhw15wgkjxHTGkygxZnbGDtvti9J+DCm4solYIp3firTnVUnkBvGoOCiGpHaVAkVay7ZpyhLwpmYV7KFQlJJ6Df3izSPBNB5N3UqbVtY8lV7o7JR8MRpYhsySPCFG3u1CM6R14VwL7wXNz4IqHgAaBmCj6WI/ULTn+C7We0GeSvlvxCcpQK1a9yHNcuDLQXd1Z0yNpz/a10hH0vY7ftEN4fbecwmImiWQoyznkZUBAm4COS/rOEvE2SqKOyGR94Mr8Zv7FlKIB1uHLO2tlwtRpTN59uNhR7tk+o5ToDlfjuI06OtyF+r0gROBoxoyW5Et9yz5qKAjfWUkPYtDIHEAeZVg= X-Forefront-Antispam-Report: CIP:193.47.165.134;CTRY:IL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(6009001)(2980300002)(428002)(189002)(199003)(479174004)(24454002)(2201001)(59896002)(76176999)(23676002)(87266999)(101416001)(65816999)(46102003)(54356999)(50986999)(64126003)(65956001)(47776003)(65806001)(36756003)(19580405001)(86362001)(77096005)(19580395003)(62966003)(189998001)(5001770100001)(80316001)(6806004)(50466002)(77156002)(107886002)(92566002)(106466001)(4001350100001)(105586002)(33656002)(83506001)(87936001)(2950100001)(3940600001)(4001430100001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR05MB314;H:mtlcas13.mtl.com;FPR:;SPF:None;MLV:ovrnspm;MX:1;A:1;PTR:ErrorRetry;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DB3PR05MB314;2:RJh3QD11ZfutjMYKOP1PAjR9jWoip/qxBWslqsDvN2SykoJ7ysnKykhsBceUjAD1;3:UjwOtfg6x9CWlNfLiHNIxbi0AzVQt1WbHixykaE1um5Ld/uGX5CJ9BccDAFq1ATm9L+TBFEaU5l7JnBgq8I29HkbPStBRsWcm9SHvdw7wPgihsICKFYRYWLfzzQJNdkUtJiqzF1/zq+qYwz/XYu1TRepUEWoblr9sdAcyg9RTe2x5GXhCXtm1+Sn83dNEeeqsl+uBclPWoUk2RwGgcKdF7xBu8Ql1JGJb5glLdP6bQlf4yYpIpKHrbG20/JHQQGj;25:qXJpR1BsEVl0CQHXT0JkfxA+li4xbZuWTZ8zb+z2jxOBtfhei1PPjVb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TdLKDCh4zThslHjnroVuHjE5YF+uQcMF+tO4vySpwE7evCx2XifbjKPXpBjcGs08= DB3PR05MB314: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:DB3PR05MB314;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB314; X-Forefront-PRVS: 0644578634 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjNQUjA1TUIzMTQ7MjM6Ujg1WGtuT3BpZTVqSzEycS9CNjNPVUpZREhx?= =?utf-8?B?TXlVTXlPNzBaRndJK0R2NzV5N3hhcmx1T2wvWkF0bjlTM2pSbTgrWlhJMy82?= =?utf-8?B?bXpBTnBlYzhBUksyVllnWWFpQkgxRFppZ0NseVUvbWJGT08rd3ZmTTdNZzBn?= =?utf-8?B?aHJ5eFh1dnJiQnZOdlo4S1BKdzdYZm51NHJjL29rRGxnV1NXR2xxOHdXMVRG?= =?utf-8?B?cmdTTHE2ZEFQTWRrS3FIbUpJdG9jZE5XdzV3Wmx0eXZOSDdUVWVkUFZCZ2Uw?= =?utf-8?B?NzRzSm5vSzhiZnZKSGhSanNqRVJST0ZRYzAwY2tZb0RjRU1CVVRnL1hvRm00?= =?utf-8?B?U2N0MzNWTFBNK2hWRWNkWC9IZjBOQThxYWc1Q2FHVm5TMzQzcXJnWHo4M3Q3?= =?utf-8?B?NzVxcDRhMURLSi9UYnM0cGNPLzZxRitaK282b2JVbTEvN0tYcWEwOWlhaXFs?= =?utf-8?B?UlljRUhoL3NhcjR1aDBMOUk0MGlNTTVReGQzcGxKemsxZmkyNDU0OFlOTE9W?= =?utf-8?B?RHZ1SHB2MnFZVkFSOEJsN1RDMXZmL2g3Z2x0REFxVHk1Z2IyaEsrbUVwOUpi?= =?utf-8?B?U1dlT2pIazdiTGEwQ0NPbWpKdmJZMkdoNWREZFNLaDVL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DJmL3NTK3BsZnczQWNJbUlOcW9T?= =?utf-8?B?azZucVBhWUhTTDRkQTRlcm9BWFBZM0hTanpYWW16blVZNFd5UnNGdWdkMFV0?= =?utf-8?B?eWRrRnNjMWJVVFY1R3ZDTExRVm5CcENIOXJzTnByL0tQVjJ1ZXM3Wnc9PQ==?= X-Microsoft-Exchange-Diagnostics: 1;DB3PR05MB314;5:7WRbkBmbOe9Gesrh7/gBTgiItCpa07QJBArEWChWEx1HPWXFnn73vCPPNBUqjy2xHyXJKiMIeq2UIRKLrxBZbBot1FuJA+RFFNGJ1aUMhZdlKltZ6qlNZsi41NXuCjYDT64Kd8mSw9734SectcyVFg==;24:VQYlYjGhGM0wfQUD0aQu6pmcZAOAVZ8s0D95pZ7HF37bMxizxOC+Xo+IwWoWXrIq9UP16mc5/QzlTUT1IzaUDlpVIdnHmctiMIIDfGqNq5w=;20:TVyGfyJuR0o1faHg8PbxQymwFodcQ9sHI1tpdJp4FJmCHul9UsFEequW3aN+Ycn7/jjmSgxXmEo9aC//+RBGwQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2015 08:30:51.6122 (UTC) X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b;Ip=[193.47.165.134];Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR05MB314 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1110 Lines: 28 On 17/07/2015 22:01, Jérôme Glisse wrote: > The mlx5 driver will need this function for its driver specific bit > of ODP (on demand paging) on HMM (Heterogeneous Memory Management). > > Signed-off-by: Jérôme Glisse > --- > drivers/infiniband/core/umem_rbtree.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/infiniband/core/umem_rbtree.c b/drivers/infiniband/core/umem_rbtree.c > index 727d788..f030ec0 100644 > --- a/drivers/infiniband/core/umem_rbtree.c > +++ b/drivers/infiniband/core/umem_rbtree.c > @@ -92,3 +92,4 @@ int rbt_ib_umem_for_each_in_range(struct rb_root *root, > > return ret_val; > } > +EXPORT_SYMBOL(rbt_ib_umem_for_each_in_range); > Perhaps it would be better if the driver didn't access the internal rbtree directly, and instead used something like an ib_mirror_for_each_range() to do this. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/