Re: [PATCH 2/6] mm: move hmm_vma_range_done and hmm_vma_fault to nouveau

From: Jason Gunthorpe
Date: Tue Jul 23 2019 - 10:55:19 EST


On Mon, Jul 22, 2019 at 11:44:22AM +0200, Christoph Hellwig wrote:
> These two functions are marked as a legacy APIs to get rid of, but seem
> to suit the current nouveau flow. Move it to the only user in
> preparation for fixing a locking bug involving caller and callee.
> All comments referring to the old API have been removed as this now
> is a driver private helper.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---
> drivers/gpu/drm/nouveau/nouveau_svm.c | 45 +++++++++++++++++++++-
> include/linux/hmm.h | 54 ---------------------------
> 2 files changed, 43 insertions(+), 56 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>

Jason