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

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