IB/core: Add locking around event dispatching on XRC target QPs
authorYishai Hadas <yishaih@mellanox.com>
Thu, 1 Aug 2013 15:49:53 +0000 (18:49 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 13 Aug 2013 18:21:32 +0000 (11:21 -0700)
commit73c40c616a33fcb7961b3c90a91b550813129b3e
tree6c9cc5b71a72c437ff97c3237c5126572e276f98
parent5c5f3f0a74740c8f7bca8255741291bb0d2ebe4b
IB/core: Add locking around event dispatching on XRC target QPs

Fix a potential race when event occurrs on a target XRC QP and in the
middle of reporting that on its shared qps, one of them is destroyed
by user space application.  Also add note for kernel consumers in
ib_verbs.h that they must not destroy the QP from within the handler.

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/verbs.c
include/rdma/ib_verbs.h