OSDN Git Service

nouveau: pass struct nouveau_svmm to nouveau_range_fault
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2019 16:05:41 +0000 (19:05 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 7 Aug 2019 17:51:46 +0000 (14:51 -0300)
commit5aa0acb374edd3c5001328276d34ac86f14a3867
treed2642cf96dc4346f95258740f5c2ee2f624ed1bc
parent07d82211b8d277d409836264075c57a21af3c023
nouveau: pass struct nouveau_svmm to nouveau_range_fault

We'll need the nouveau_svmm structure to improve the function soon.  For
now this allows using the svmm->mm reference to unlock the mmap_sem, and
thus the same dereference chain that the caller uses to lock and unlock
it.

Link: https://lore.kernel.org/r/20190806160554.14046-4-hch@lst.de
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