OSDN Git Service

drm/amdkfd: use mmu_notifier_put
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 6 Aug 2019 23:15:47 +0000 (20:15 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Aug 2019 12:35:02 +0000 (09:35 -0300)
commit471f390205698ed5225af052a80b71d2bce6b93a
treea6b1df0389f5c2cb21330a04f1aaf25dfb9f45ab
parent0029cab3146a53b820e73c9cd70809b831c590d7
drm/amdkfd: use mmu_notifier_put

The sequence of mmu_notifier_unregister_no_release(),
mmu_notifier_call_srcu() is identical to mmu_notifier_put() with the
free_notifier callback.

As this is the last user of those APIs, converting it means we can drop
them.

Link: https://lore.kernel.org/r/20190806231548.25242-11-jgg@ziepe.ca
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c