pthread_cond_timedwait() requires pending_requests.lock being taken.

Signed-off-by: David Marchand <david.march...@redhat.com>
---
 lib/eal/common/eal_common_proc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/eal/common/eal_common_proc.c b/lib/eal/common/eal_common_proc.c
index 1fc1d6c53b..aa060ae4dc 100644
--- a/lib/eal/common/eal_common_proc.c
+++ b/lib/eal/common/eal_common_proc.c
@@ -908,6 +908,9 @@ mp_request_async(const char *dst, struct rte_mp_msg *req,
 static int
 mp_request_sync(const char *dst, struct rte_mp_msg *req,
               struct rte_mp_reply *reply, const struct timespec *ts)
+#ifdef RTE_EXEC_ENV_FREEBSD
+       __rte_exclusive_locks_required(pending_requests.lock)
+#endif
 {
        int ret;
        pthread_condattr_t attr;
-- 
2.39.2

Reply via email to