]> git.dujemihanovic.xyz Git - linux.git/commit
mm/hmm: move hmm_vma_range_done and hmm_vma_fault to nouveau
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Jul 2019 06:52:53 +0000 (08:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 19:14:39 +0000 (16:14 -0300)
commit02712bc3250849c1cf99d626aea98f610e695f34
tree80f356a02d16c5575995f34b5ce0f56e8b0e2c7c
parent2bcbeaefde2f0384d6ad351c151b1a9fe7791a0a
mm/hmm: move hmm_vma_range_done and hmm_vma_fault to nouveau

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.

Link: https://lore.kernel.org/r/20190724065258.16603-3-hch@lst.de
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/nouveau/nouveau_svm.c
include/linux/hmm.h