]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/core: Simplify type usage for ib_uverbs_async_handler()
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 8 Jan 2020 17:22:02 +0000 (19:22 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 13 Jan 2020 20:20:16 +0000 (16:20 -0400)
commit817d65765069d1e7dee97473a6465947db1bea80
tree21502393746b92ae780e97533bfeb9a407ec7b7b
parente04dd13159b0ddc0ff7f5e110bf99af3c65fabd3
RDMA/core: Simplify type usage for ib_uverbs_async_handler()

This function works on an ib_uverbs_async_file. Accept that as a parameter
instead of the struct ib_uverbs_file.

Consoldiate all the callers working from an ib_uevent_object to a single
function and locate the async_file directly from the struct ib_uobject
instead of using context_ptr.

Link: https://lore.kernel.org/r/1578504126-9400-11-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/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c