amdgpu: remove -EAGAIN handling for hmm_range_fault
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2019 16:05:39 +0000 (19:05 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 7 Aug 2019 17:51:46 +0000 (14:51 -0300)
commit9d0a16658f840335325508e06a797be1883e6c56
tree4eb4b61ab9f57861ab8ab512a59e3d91afd2a9e1
parentcc374377a19d2a49d693997b62dc3a6f5fac6d61
amdgpu: remove -EAGAIN handling for hmm_range_fault

hmm_range_fault can only return -EAGAIN if called with the
HMM_FAULT_ALLOW_RETRY flag, which amdgpu never does.  Remove the handling
for the -EAGAIN case with its non-standard locking scheme.

Link: https://lore.kernel.org/r/20190806160554.14046-2-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c