mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Jack Morgenstein <[email protected]> Signed-off-by: Or Gerlitz <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
5c5f3f0a74
commit
73c40c616a
2 changed files with 9 additions and 0 deletions
|
|
@ -635,6 +635,12 @@ enum ib_qp_create_flags {
|
|||
IB_QP_CREATE_RESERVED_END = 1 << 31,
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Note: users may not call ib_close_qp or ib_destroy_qp from the event_handler
|
||||
* callback to destroy the passed in QP.
|
||||
*/
|
||||
|
||||
struct ib_qp_init_attr {
|
||||
void (*event_handler)(struct ib_event *, void *);
|
||||
void *qp_context;
|
||||
|
|
|
|||
Loading…
Reference in a new issue