IB/iser: Decrement CQ's active QPs accounting when QP creation fails
authorSagi Grimberg <sagig@mellanox.com>
Sun, 7 Dec 2014 14:09:55 +0000 (16:09 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:11:44 +0000 (18:11 -0800)
commit93acb7bbc7de789a97e0aed97ddb55fa607724f4
tree7c54cf1edd422b6359d2844bf9921994802514a3
parent5426b1711fd006cb0574a2a24bf738cc38d5220d
IB/iser: Decrement CQ's active QPs accounting when QP creation fails

When creating a connection QP we choose the least used CQ and inc the
number of active QPs on that. If we fail to create the QP, we need to
decrement the active QPs counter.

Reported-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_verbs.c