Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1504551pxf; Fri, 19 Mar 2021 08:32:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNGQh0Khup8X+eziABa5HcTjLQM/DckEj86BYw6wM5OuUY1X9rg4kPe+3/pT8Ss6rwj2zz X-Received: by 2002:a17:906:7102:: with SMTP id x2mr5080670ejj.355.1616167928128; Fri, 19 Mar 2021 08:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616167928; cv=none; d=google.com; s=arc-20160816; b=pxDUTFmJsl6ZMuJfWE7HMNiwUIEz42unI1W8quC6jELKIqZwNQWhWX51VrDIyfXKFM O22edG4OA4GWuyRjO4mNVd7/lhl5QLbXq7e1dcPAuxzY1lNkUV9ygUSAlmp08SdsJPLt jDdwXyh7j3OVhXE5dpKJeZf16eZ9TD5JxVrQUUH2jM+ybbup1S35HSWOPxUULtIu7G63 nZC+1QY+t+2N3RvTlDMKQcZDpQZQDakZtsV4DMIzfkwXN2gWkpv8rO+WOnM5oFiSc2hq NkUSGXx5JYB7id8eddCV5kdmpLxzPtAqAgILkkhPUEkvcbtrDtKL5cuc6etyUgKUun3M ZBOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=y2Hh+ZOEXqlhe5CW9lR4XeJK2O5j49qZPg7bwfxiYhE=; b=rMsJiwpAHd3L9JndLtK0B6QmcE+FI/vQvLI1Um3L/Dqn9LomBDfgw8P5hV9/eSay3L TuZ5IMcmVPeFrZ5pxgYCtUg9N/9nnjCRautFqrN5KXW44SFWjM6whCqcEDyQhE+cbcEj NGu6gotSWBIjtelpUOw6M5dOCkEDQvzeRj+qpulL/IjU23AtsqNWnCny9LBu6Y9GkXUr SFAZJX50a4xe9hxnsNTOuYIlmpzXovR+K60C/dr8AEaSqgV5RURRmo/Xew/OK/DdC4jF YREyGrROa3nFZNqzVpz+ZIS316YduJqIZ8p26Tl8bs/2+c8l3NmaR1sQVa1TX45+sKeH dPJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XFe6zgMv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qh28si4343339ejb.580.2021.03.19.08.31.44; Fri, 19 Mar 2021 08:32:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XFe6zgMv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbhCSPaR (ORCPT + 99 others); Fri, 19 Mar 2021 11:30:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:60485 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbhCSP3y (ORCPT ); Fri, 19 Mar 2021 11:29:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616167794; 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=y2Hh+ZOEXqlhe5CW9lR4XeJK2O5j49qZPg7bwfxiYhE=; b=XFe6zgMvO/w7WaVDTFl7QKmGOz09n6z9LyRp1Hx+V1mo3sGRTBjGnRiLENqHJe4WCSIsi0 qwmARE07PZKky5dgVQoo+DH2peAX8suldKapvMd4l+PCyxF1m6apPTs+rcKI0GiPaYOT3x 5n5GhSQc5EzFTK0MDGtHVRf2nSYAPYk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-386-0Ckpx81WPUO0LbYLr8CAQQ-1; Fri, 19 Mar 2021 11:29:46 -0400 X-MC-Unique: 0Ckpx81WPUO0LbYLr8CAQQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7746B19251A3; Fri, 19 Mar 2021 15:29:45 +0000 (UTC) Received: from llong.remote.csb (ovpn-118-18.rdu2.redhat.com [10.10.118.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7CC1B1C94B; Fri, 19 Mar 2021 15:29:41 +0000 (UTC) Subject: Re: [PATCH-tip 0/5] locking/locktorture: Fix locktorture ww_mutex test problems To: Ingo Molnar Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , "Paul E. McKenney" , Davidlohr Bueso , linux-kernel@vger.kernel.org, Juri Lelli References: <20210318172814.4400-1-longman@redhat.com> <20210319111629.GB4029764@gmail.com> From: Waiman Long Organization: Red Hat Message-ID: <2e195484-e011-faab-f6b0-1cfeecc5f3bf@redhat.com> Date: Fri, 19 Mar 2021 11:29:40 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210319111629.GB4029764@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/19/21 7:16 AM, Ingo Molnar wrote: > * Waiman Long wrote: > >> This is a follow-up patch series for the previous patchset on fixing >> locktorture ww_mutex test problem [1]. The first 3 patches of that >> series were merged into tip. It turns out that the last one of the >> three wasn't quite right. So this patch series revert the last patch. >> >> The rests of the patch series fix the ww_mutex testing problem in >> locktorture as well as removing the DEFINE_WW_MUTEX() macro from >> include/linux/ww_mutex.h. >> >> [1] https://lore.kernel.org/lkml/20210316153119.13802-1-longman@redhat.com/ >> >> Waiman Long (5): >> locking/ww_mutex: Revert "Treat ww_mutex_lock() like a trylock" >> locking/locktorture: Fix false positive circular locking splat in >> ww_mutex test >> locking/ww_mutex: Remove DEFINE_WW_MUTEX() macro >> locking/locktorture: Pass thread id to lock/unlock functions >> locking/locktorture: locking/locktorture: Fix incorrect use of >> ww_acquire_ctx in ww_mutex test > Applied, thanks Waiman. > > I kept these two fixes in locking/urgent, for a v5.12 merge: > > bee645788e07: ("locking/ww_mutex: Fix acquire/release imbalance in ww_acquire_init()/ww_acquire_fini()") > 5de2055d31ea: ("locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling") > > As this bug could affect actual ww_mutex users. > > And queued up these four in locking/core, for a v5.13 merge: > > 8c52cca04f97: ("locking/locktorture: Fix incorrect use of ww_acquire_ctx in ww_mutex test") > aa3a5f31877e: ("locking/locktorture: Pass thread id to lock/unlock functions") > 5261ced47f8e: ("locking/ww_mutex: Remove DEFINE_WW_MUTEX() macro") > 2ea55bbba23e: ("locking/locktorture: Fix false positive circular locking splat in ww_mutex test") > > As these bugs are basically limited to a debugging facility. > > ( But we could also merge them into v5.12, if you think it's > justified. No strong opinions either way. ) I think v5.13 merge is fine. This problem exists for quite a while and no one notices it. So it is not really that urgent. Thank a lot for the quick action. Cheers, Longman