nouveau: return -EBUSY when hmm_range_wait_until_valid fails
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Jul 2019 06:52:56 +0000 (08:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 19:14:40 +0000 (16:14 -0300)
commit1b88b99bdff85e75df1cfaa418ed2ef8e1bffeb2
tree3ea08d356a086221e9055172db5509aca0b19e69
parentde4ee728465f7c0c29241550e083139b2ce9159c
nouveau: return -EBUSY when hmm_range_wait_until_valid fails

-EAGAIN has a magic meaning for non-blocking faults, so don't overload it.
Given that the caller doesn't check for specific error codes this change
is purely cosmetic.

Link: https://lore.kernel.org/r/20190724065258.16603-6-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