RDMA/uverbs: Fix create WQ to use the given user handle
authorYishai Hadas <yishaih@mellanox.com>
Wed, 6 May 2020 08:24:42 +0000 (11:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:23 +0000 (17:48 +0200)
commit645943ecaa58775582ffef6ae48efdda835af2ff
treeb447d78b49f4d5c52b33bda86421ebae31fb4d59
parent86dbfac4361fe9d29300f3ab755bcf38347b37fc
RDMA/uverbs: Fix create WQ to use the given user handle

[ Upstream commit dbd67252869ba58d086edfa14113e10f8059b97e ]

Fix create WQ to use the given user handle, in addition dropped some
duplicated code from this flow.

Fixes: fd3c7904db6e ("IB/core: Change idr objects to use the new schema")
Fixes: f213c0527210 ("IB/uverbs: Add WQ support")
Link: https://lore.kernel.org/r/20200506082444.14502-9-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/core/uverbs_cmd.c