]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a91ae1adae557f882aed210cef985fedd4ef821
tree7f58f94ad65046eb974c2bfdf27e23f478f75b4b
parente629ee8ffcbb9fa4511e99f0827feb14fcd0d412
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