From patchwork Sun Feb 9 17:00:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1235491 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-109293-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=xBXpwJvY; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48FwKC3QHlz9sPJ for ; Mon, 10 Feb 2020 04:00:47 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=spi eVzXerJ6IvLVqsiBY8Cx6BOAfG3J6l57Bjw+78Q/+in7dsFZTMEvHHCQDenSfl4W AijBDMTGdtPkgqO6RVgG2DTq7fH+JhnXvKJ0omvdongn0me9q5h9kN5s26NVU+tZ Hc7hfRG46PH10mWwcBiB3v1nM+0Txx8g4QVu2HvQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=crKDBE7kQ IXvOM+fcWddHOs46cE=; b=xBXpwJvYYf3mvaRPEcDTJQEUCGCZfCS2sLnGl9qsO AML2ruGHIlsMzOU23FWS+IOQ2qZMu6zANFxYhkec9kPljVOIfe424vAmHzP2AOaZ 42GfHQ8vBPbtHu4rw5sUTMZxxMso/hpfcUlg0fT4xzRSOjvIcGjNYXeaSgSmvDWC B4= Received: (qmail 45955 invoked by alias); 9 Feb 2020 17:00:39 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 42240 invoked by uid 89); 9 Feb 2020 17:00:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] htl: make pthread_spin_lock really spin Date: Sun, 9 Feb 2020 18:00:10 +0100 Message-Id: <20200209170010.278479-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 __spin_lock would actually use gsync_wait to block, which is not what pthread_spin_lock is about. --- sysdeps/mach/htl/bits/spin-lock-inline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/mach/htl/bits/spin-lock-inline.h b/sysdeps/mach/htl/bits/spin-lock-inline.h index 771292f08f..556bdd4c28 100644 --- a/sysdeps/mach/htl/bits/spin-lock-inline.h +++ b/sysdeps/mach/htl/bits/spin-lock-inline.h @@ -67,7 +67,7 @@ __PT_SPIN_INLINE int __pthread_spin_lock (__pthread_spinlock_t *__lock); __PT_SPIN_INLINE int __pthread_spin_lock (__pthread_spinlock_t *__lock) { - __spin_lock ((__spin_lock_t *) __lock); + __spin_lock_solid ((__spin_lock_t *) __lock); return 0; }