]> asedeno.scripts.mit.edu Git - linux.git/commit
mm: turn migrate_vma upside down
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2019 07:59:19 +0000 (09:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Aug 2019 12:35:02 +0000 (09:35 -0300)
commita7d1f22bb74f32cf3cd93f52776007e161f1a738
treed3cbbf0483499da1f858f3b2facda271670e8d69
parentf4fb3b9c1971ec210b30845a9f62dc823c5242d0
mm: turn migrate_vma upside down

There isn't any good reason to pass callbacks to migrate_vma.  Instead
we can just export the three steps done by this function to drivers and
let them sequence the operation without callbacks.  This removes a lot
of boilerplate code as-is, and will allow the drivers to drastically
improve code flow and error handling further on.

Link: https://lore.kernel.org/r/20190814075928.23766-2-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Documentation/vm/hmm.rst
drivers/gpu/drm/nouveau/nouveau_dmem.c
include/linux/migrate.h
mm/migrate.c