IB/mlx5: Use the ucontext from the uobj, not the file
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 11 Jul 2018 02:55:22 +0000 (20:55 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 25 Jul 2018 20:21:22 +0000 (14:21 -0600)
commitc36ee46dafaea1bb525c4e34d3e35dd9a6768a47
tree7f58f94ad65046eb974c2bfdf27e23f478f75b4b
parentaba94548c9e49939fafc92bb406a7f8e7ed87643
IB/mlx5: Use the ucontext from the uobj, not the file

This approach matches the standard flow of the typical write method that
relies on the HW object to store the device and the uobject to access the
ucontext.  Avoids the use of the devx_ufile2uctx in several places will
make revising the semantics of ib_uverbs_get_ucontext() in the next patch
simpler.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c