summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch30
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core_27.0.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch
new file mode 100644
index 0000000000..80abd33139
--- /dev/null
+++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch
@@ -0,0 +1,30 @@
1From 6ac9562d756d42592994aeaac7a5e7b2bbce5cab Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 14 Dec 2019 14:07:57 -0800
4Subject: [PATCH] librdmacm: Use sched_yield instead of pthread_yield
5
6glibc redirects pthread_yield to sched_yield additionally we get it
7working with musl on linux
8
9Upstream-Status: Submitted [https://github.com/linux-rdma/rdma-core/pull/635]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 librdmacm/rsocket.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/librdmacm/rsocket.c b/librdmacm/rsocket.c
16index 89ae2139..7fc5b266 100644
17--- a/librdmacm/rsocket.c
18+++ b/librdmacm/rsocket.c
19@@ -3038,7 +3038,7 @@ static int rs_poll_enter(void)
20 pthread_mutex_lock(&mut);
21 if (suspendpoll) {
22 pthread_mutex_unlock(&mut);
23- pthread_yield();
24+ sched_yield();
25 return -EBUSY;
26 }
27
28--
292.24.1
30
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core_27.0.bb b/meta-networking/recipes-support/rdma-core/rdma-core_27.0.bb
index b7a3dfc0d9..361d69b337 100644
--- a/meta-networking/recipes-support/rdma-core/rdma-core_27.0.bb
+++ b/meta-networking/recipes-support/rdma-core/rdma-core_27.0.bb
@@ -8,6 +8,7 @@ RDEPENDS_${PN} = "bash perl"
8BRANCH = "stable-v${@d.getVar('PV').split('.')[0]}" 8BRANCH = "stable-v${@d.getVar('PV').split('.')[0]}"
9SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=${BRANCH} \ 9SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=${BRANCH} \
10 file://0001-Remove-man-files-which-cant-be-built.patch \ 10 file://0001-Remove-man-files-which-cant-be-built.patch \
11 file://0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch \
11 " 12 "
12SRCREV = "84caf035ae6123e2296b72006cd2cf698c65eb46" 13SRCREV = "84caf035ae6123e2296b72006cd2cf698c65eb46"
13S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"