RDMA/core: Remove the ufile arg from rdma_alloc_begin_uobject
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 8 Jan 2020 17:22:04 +0000 (19:22 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 13 Jan 2020 20:20:16 +0000 (16:20 -0400)
commit39e83af817610e80a9582df94d44173bcb6f85e4
tree7cb31dd61544964c5c19eb752eb4d33bd4452a9d
parent817d65765069d1e7dee97473a6465947db1bea80
RDMA/core: Remove the ufile arg from rdma_alloc_begin_uobject

Now that all callers provide a non-NULL attrs the ufile is redundant.
Adjust things so that the context handling is done inside alloc_uobj,
and the ib_uverbs_get_ucontext_file() is avoided if we already have the
context.

Link: https://lore.kernel.org/r/1578504126-9400-13-git-send-email-yishaih@mellanox.com
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rdma_core.c
include/rdma/uverbs_std_types.h
include/rdma/uverbs_types.h