RDMA/mlx5: Simplify devx async commands
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 8 Jan 2020 17:21:55 +0000 (19:21 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 13 Jan 2020 20:17:19 +0000 (16:17 -0400)
commit93887e66ff3c1a62c36a7f0eca9445063399b39d
tree9ae84de3f3ff1ba9c7dc2f6e508bca248ffb1772
parentf7c8416ccea52b41e29227b3a5066540f51ee471
RDMA/mlx5: Simplify devx async commands

With the new FD structure the async commands do not need to hold any
references while running. The existing mlx5_cmd_exec_cb() and
mlx5_cmd_cleanup_async_ctx() provide enough synchronization to ensure
that all outstanding commands are completed before the uobject can be
destructed.

Remove the now confusing get_file() and the type erasure of the
devx_async_cmd_event_file.

Link: https://lore.kernel.org/r/1578504126-9400-4-git-send-email-yishaih@mellanox.com
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c