IB/core: Fixes to XRC reference counting in uverbs
authorYishai Hadas <yishaih@mellanox.com>
Thu, 1 Aug 2013 15:49:54 +0000 (18:49 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 13 Aug 2013 18:21:32 +0000 (11:21 -0700)
commit846be90d810c285f6474f53abf1f928e1113830e
tree8daa8a2b5ef54239fdfa04c2034f0abe1c80e81b
parent73c40c616a33fcb7961b3c90a91b550813129b3e
IB/core: Fixes to XRC reference counting in uverbs

Added reference counting mechanism for XRC target QPs between
ib_uqp_object and its ib_uxrcd_object.  This prevents closing an XRC
domain that is still attached to a QP.  In addition, add missing code
in ib_uverbs_destroy_srq() to handle ib_uxrcd_object reference
counting correctly when destroying an xsrq.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c