From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH] RDMA/umem: updated bug fix in error handling path Date: Wed, 6 Mar 2019 14:45:54 -0400 Message-ID: <20190306184554.GG1662@ziepe.ca> References: <20190306020022.21828-1-jhubbard@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20190306020022.21828-1-jhubbard@nvidia.com> Sender: linux-kernel-owner@vger.kernel.org To: john.hubbard@gmail.com Cc: linux-mm@kvack.org, Andrew Morton , LKML , John Hubbard , Artemy Kovalyov , Leon Romanovsky , Ira Weiny , Doug Ledford , linux-rdma@vger.kernel.org List-Id: linux-rdma@vger.kernel.org On Tue, Mar 05, 2019 at 06:00:22PM -0800, john.hubbard@gmail.com wrote: > From: John Hubbard > > The previous attempted bug fix overlooked the fact that > ib_umem_odp_map_dma_single_page() was doing a put_page() > upon hitting an error. So there was not really a bug there. > > Therefore, this reverts the off-by-one change, but > keeps the change to use release_pages() in the error path. > > Fixes: commit xxxxxxxxxxxx ("RDMA/umem: minor bug fix in error handling path") > Suggested-by: Artemy Kovalyov > > Cc: Leon Romanovsky > Cc: Ira Weiny > Cc: Jason Gunthorpe > Cc: Andrew Morton > Cc: Doug Ledford > Cc: linux-rdma@vger.kernel.org > Cc: linux-mm@kvack.org > Signed-off-by: John Hubbard > --- > drivers/infiniband/core/umem_odp.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) Applied to for-next, thanks Jason