From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751091AbcJCHbP (ORCPT ); Mon, 3 Oct 2016 03:31:15 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:34228 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbcJCHbH (ORCPT ); Mon, 3 Oct 2016 03:31:07 -0400 Date: Mon, 3 Oct 2016 00:31:04 -0700 From: Christoph Hellwig To: James Simmons Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, Andreas Dilger , Oleg Drokin , Linux Kernel Mailing List , Lustre Development List , linux-rdma@vger.kernel.org Subject: Re: [PATCH] staging: lustre: ko2iblbd: handle ib_dereg_mr removal Message-ID: <20161003073104.GA28412@infradead.org> References: <1475461351-21495-1-git-send-email-jsimmons@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475461351-21495-1-git-send-email-jsimmons@infradead.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hell no. If you had actually read the changelog you'd see that there is a reason the functions went away, and simply calling the underlying methods (which also will go away) will not fix it. Please go back reading the changelogs, and while we're at it read some basic introductions into the RDMA programming model. As a little shortcut: relying on any form of a global registration for the rkey is inherently unsafe and only allowed as an option variant for very trusted environments (thing single box appliances). You'll need to do a real memory registration here and not drag that old crap along.