From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A1D141D5F; Fri, 24 Feb 2023 16:13:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F3E1442D46; Fri, 24 Feb 2023 16:12:36 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id C550342D41 for ; Fri, 24 Feb 2023 16:12:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677251555; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i0FvZ0tRPnfF2GlOGHjrSOmc/x2xyhRFGRCH4vcWHAU=; b=VeI4MXVp5BWTxjKXCncpGuZTFDY7dp3pG9BitUiDy/gTsyxyAVFwDfZ/vDy6+rZsLvP2S7 kE+ly5gaYoNtcp48qHaInadn+JGAfhWuD2bn1F5drRAHzDHd049Ema0B8lhLIgkbknkOom ZUo4cNVQGfD5apDNtKitzngI6RrF10Y= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-59-hLP9jQDROw21ModMqsseAw-1; Fri, 24 Feb 2023 10:12:32 -0500 X-MC-Unique: hLP9jQDROw21ModMqsseAw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9C6BF1C041A8; Fri, 24 Feb 2023 15:12:31 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.224.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id DB53D1121315; Fri, 24 Feb 2023 15:12:30 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, Anatoly Burakov Subject: [PATCH v2 14/20] ipc: annotate pthread mutex Date: Fri, 24 Feb 2023 16:11:37 +0100 Message-Id: <20230224151143.3274897-15-david.marchand@redhat.com> In-Reply-To: <20230224151143.3274897-1-david.marchand@redhat.com> References: <20230224081642.2566619-1-david.marchand@redhat.com> <20230224151143.3274897-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org pthread_cond_timedwait() requires pending_requests.lock being taken. Signed-off-by: David Marchand --- 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