diff options
| author | Mustafa Ismail <[email protected]> | 2021-10-19 15:16:54 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2021-10-19 23:22:01 +0000 |
| commit | 2dace185caa580720c7cd67fec9efc5ee26108ac (patch) | |
| tree | 3adda638ff65580973b8f6049978b900b1f1250f /lib/string_helpers.c | |
| parent | RDMA/irdma: Set VLAN in UD work completion correctly (diff) | |
| download | kernel-2dace185caa580720c7cd67fec9efc5ee26108ac.tar.gz kernel-2dace185caa580720c7cd67fec9efc5ee26108ac.zip | |
RDMA/irdma: Do not hold qos mutex twice on QP resume
When irdma_ws_add fails, irdma_ws_remove is used to cleanup the leaf node.
This lead to holding the qos mutex twice in the QP resume path. Fix this
by avoiding the call to irdma_ws_remove and unwinding the error in
irdma_ws_add. This skips the call to irdma_tc_in_use function which is not
needed in the error unwind cases.
Fixes: 3ae331c75128 ("RDMA/irdma: Add QoS definitions")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mustafa Ismail <[email protected]>
Signed-off-by: Shiraz Saleem <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
