]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ff2556cfec3ddda333fb0fe457d7fc405ad8672
tree6c9cc5b71a72c437ff97c3237c5126572e276f98
parent6e5f14e47e378572b6fdcf8ad2d172d476111b5e
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