Blame SOURCES/0006-verbs-Fix-ibv_create_wq-to-set-wq_context.patch

6f52e5
From 24eb020845273acb301b69779921284475303d3a Mon Sep 17 00:00:00 2001
6f52e5
From: Yishai Hadas <yishaih@mellanox.com>
6f52e5
Date: Sun, 19 Apr 2020 14:06:15 +0300
6f52e5
Subject: [PATCH 6/8] verbs: Fix ibv_create_wq() to set wq_context
6f52e5
6f52e5
[ Upstream commit 130dc94863e754402bb79d52ef89a72a94041def ]
6f52e5
6f52e5
Fix ibv_create_wq() to set wq_context upon a successful creation.
6f52e5
6f52e5
Fixes: 2864904f82bf ("Introduce Work Queue object and its verbs")
6f52e5
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
6f52e5
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
6f52e5
---
6f52e5
 libibverbs/verbs.h | 1 +
6f52e5
 1 file changed, 1 insertion(+)
6f52e5
6f52e5
diff --git a/libibverbs/verbs.h b/libibverbs/verbs.h
6f52e5
index 288985d54975..5e256b4dc442 100644
6f52e5
--- a/libibverbs/verbs.h
6f52e5
+++ b/libibverbs/verbs.h
6f52e5
@@ -3073,6 +3073,7 @@ static inline struct ibv_wq *ibv_create_wq(struct ibv_context *context,
6f52e5
 
6f52e5
 	wq = vctx->create_wq(context, wq_init_attr);
6f52e5
 	if (wq) {
6f52e5
+		wq->wq_context = wq_init_attr->wq_context;
6f52e5
 		wq->events_completed = 0;
6f52e5
 		pthread_mutex_init(&wq->mutex, NULL);
6f52e5
 		pthread_cond_init(&wq->cond, NULL);
6f52e5
-- 
6f52e5
2.25.4
6f52e5