Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2557993rdb; Tue, 12 Sep 2023 05:54:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQmealmrU4VvY3g/KcS2aJJQUo+sJOW5WdmCorHGpXD6ddoZOeB9XuCbSpYBHpHgv5ZbfT X-Received: by 2002:a17:90b:228f:b0:268:fc26:73a9 with SMTP id kx15-20020a17090b228f00b00268fc2673a9mr9226475pjb.40.1694523296083; Tue, 12 Sep 2023 05:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694523296; cv=none; d=google.com; s=arc-20160816; b=Bvfx32SjydrmfVZNPZ5sNSGlMN4c2AEf1M8P5jx106jZ3MnKFL0EafFyol0cE1lE1G /uqZvlzrEXeV3Gb8pBEBMmIUSBe09lQ7Ftf9gdozP/SF0AZbjKq1deq2scBJDAkFZ6Ea r3bASd4kYcXluarP4++qnTaWxb6QwSgdckLfcOBvgWg3pvn+JGZZVMrJmzObgrI0ICj1 HFUGh2q7o5yXjHAB9zGAfzT9VWTT0RCMIMStQHuFqqS++K5k4lEBT1i0XDJc3OyDN5uh nF+3U/eOLo1oj10av+YKXBb1IvQqYSHZgKt9aepLqpX4MtdzbbyVSMCS7H2m66UWbJI7 k+Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=0969fIIiciKIVWYKv+gSIVjEQIE3takFQ4pk4cNekyc=; fh=sxqMizeKQkgWWD+JTKEAluTPc11PdtjcNM6CkX+pJm4=; b=RB53YMTixdqkm2oYrqf+xnwqiK8AStRi5Ytk0ratW5UdQLM0tjrgEP+sAQc8d1Kb1b LEclr7SHqNRFJUceYWuI/1QOTulHsUjsMVtVxSO6DN8UPY5uUrxmOSsP0Bw5dq1K+jkK 2vCUGpUaXLbLKe4UhjpSddN6z9pMwUijMTir/5dx+UXbQpFESDX0dH4BMilprWwObPwt PltxytRIwX5mXmK9z6daLAF2h8le7ZVgHcimuQqkGdduzWcybCf6Mjf3tjAeHKqjlBOY T12yp+gZdk6i920UvqWk/wuNC+OKFuwIVdmU0jpU9G0/wxEDXPRdAbe7gY5zdyg3iDuj OFBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=upS6lWG4; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id d64-20020a17090a6f4600b002613720fcd5si9840377pjk.35.2023.09.12.05.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:54:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=upS6lWG4; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 76A2D80D0CEE; Tue, 12 Sep 2023 04:27:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234769AbjILL1W (ORCPT + 99 others); Tue, 12 Sep 2023 07:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234590AbjILL1I (ORCPT ); Tue, 12 Sep 2023 07:27:08 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 714DD1718 for ; Tue, 12 Sep 2023 04:26:46 -0700 (PDT) Date: Tue, 12 Sep 2023 13:26:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1694518005; 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=0969fIIiciKIVWYKv+gSIVjEQIE3takFQ4pk4cNekyc=; b=upS6lWG4KA/sDaS8KCTZxLVquM8d5ErN1iba2IEl6XKUljHGNxJ2ichkPJmEx8Db+3JWg5 Pt420A2X+/DE2yWJUwSkSFhJ8Lxpskq7xZxhh73tuVCT+WpmIC/lHtHeJy+L5bDvU7l94O jn89y9Ij6527G3Ed5l3FXIVPXguU96KRieu8uS1EeqMvjY7yJByDdHXEk/jlWe4QBQG4MM KmaN7nwOPIxHBlysvAeAmPr+2ZNyD72M3bIEzICE8zUbADm287j1DenuoluPvH6a/UrtfF uSOUsmaIf0whz0bvp0Ttmr0efdFDJcY8O+v/Ctj/d+cPd4SnPHWdsSfys/IRjQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1694518005; 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=0969fIIiciKIVWYKv+gSIVjEQIE3takFQ4pk4cNekyc=; b=5ZqGek2+BzumJIuVnGhkaXEEIMvGwbJju6C/BLJl/3UOS1jJ8LLPsuMAHjdnmWJiM+W8+I O9SG0bb5frR3YKDg== From: Sebastian Andrzej Siewior To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, boqun.feng@gmail.com, bristot@redhat.com, bsegall@google.com, dietmar.eggemann@arm.com, jstultz@google.com, juri.lelli@redhat.com, longman@redhat.com, mgorman@suse.de, mingo@redhat.com, rostedt@goodmis.org, swood@redhat.com, vincent.guittot@linaro.org, vschneid@redhat.com, will@kernel.org Subject: Re: [PATCH v3 7/7] locking/rtmutex: Acquire the hb lock via trylock after wait-proxylock. Message-ID: <20230912112643.R4IrwXEB@linutronix.de> References: <20230908162254.999499-1-bigeasy@linutronix.de> <20230908162254.999499-8-bigeasy@linutronix.de> <20230911141135.GB9098@noisy.programming.kicks-ass.net> <20230912105745.GB13926@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230912105745.GB13926@noisy.programming.kicks-ass.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Sep 2023 04:27:37 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email On 2023-09-12 12:57:45 [+0200], Peter Zijlstra wrote: > > --- a/kernel/futex/pi.c > > +++ b/kernel/futex/pi.c > > @@ -1147,19 +1143,34 @@ int futex_unlock_pi(u32 __user *uaddr, unsigned= int flags) =E2=80=A6 > > + rt_waiter =3D rt_mutex_top_waiter(&pi_state->pi_mutex); > > + if (!rt_waiter) > > + goto do_uncontended; >=20 > That ^ needs to drop wait_lock before the goto. Ach, you noticed that one. Wrote a reply a few minutes after that one. Sebastian