]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
RDMA/nldev: Reshuffle the code to avoid need to rebind QP in error path
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 2 Oct 2019 11:56:27 +0000 (14:56 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:09 +0000 (18:47 +0100)
commitf8513a6e4764844952024a48e145580a7b01eb0c
treeee9d641659c911c5a481444b305ed2c55dbf3bae
parentc15b08fb3c6b42e4032de3a0f38cc64ca126b0d4
RDMA/nldev: Reshuffle the code to avoid need to rebind QP in error path

BugLink: https://bugs.launchpad.net/bugs/1851550
[ Upstream commit 594e6c5d41ed2471ab0b90f3f0b66cdf618b7ac9 ]

Properly unwind QP counter rebinding in case of failure.

Trying to rebind the counter after unbiding it is not going to work
reliably, move the unbind to the end so it doesn't have to be unwound.

Fixes: b389327df905 ("RDMA/nldev: Allow counter manual mode configration through RDMA netlink")
Link: https://lore.kernel.org/r/20191002115627.16740-1-leon@kernel.org
Reviewed-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/infiniband/core/nldev.c