Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8797081ybi; Thu, 6 Jun 2019 20:34:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPlyo4XYyXgY0kooq/FcUrUz+sYXTSUq5N2gJYaKTl1ZkNnzRKiYWIhFns+cWpceZVCV2A X-Received: by 2002:a17:90a:3801:: with SMTP id w1mr3032083pjb.99.1559878491075; Thu, 06 Jun 2019 20:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559878491; cv=none; d=google.com; s=arc-20160816; b=nrHnPDYuT8PPWg6m2FRkzDPF5AbGZ8k5xaGxXGx2FKcMSXMMil7yVjg6GqlatnDvM+ oiNnwDPZR0Noh24dmUHJTV107oFA7JYGX/VzB92fvegamX+gIph8DCvz0TtnMldRzNlB JHyzitSpvo/aMsj2tja14NWydyQ8aGjwVdNwduc06YLix5td+9k9+IzW+TVymrSXZOs7 yfeHc1/tjbBiOndx2YdNY77xva2nKBVNymMYf/2szgGrGaoBHO2i1ngZ8DkyUy4ZQDZS SxhKZE2MwYRWiGO3MF95BpEdpsY8E6NnwIHoC7E4COK+UyZbIKytq9a1/qe5scnY0y1Q 5EjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cDxKlx26C6I58M71iZg55l9IUELd+cCI69BULnCFGCU=; b=Ru6Z0Fh015FRBalWiJHDdT82vmN9ImAcafdquhz5L/bz2zUsl5mgX9/WooQy6+ATUr oUs8nN6QvK+8NxHusKqcuPAZgTQJXlsmE+063tuTgta9nG+jg8UUrxNfixNQjWQlLM1Z pkDRW/a8pFwSsHV2/2zmqz/lNTIvx84TCSUyK6Fs4DBiW2fxRRMc4gR2UAuLTZ1mPCXg yRcIN8qQYamDPy91Ze/ykLhjO22b3ArciCdxjwCrZ5pUJzrzh6UdtKFBNAGiYuXwL48V /AdJQy/nb5AyDcVyDsnyOLz3kzHKVBCs4mAZfk0mYm+xdcmSNC5o2TtMB/lbGY6K6GU9 47pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R9RSlkf8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si703479pjn.105.2019.06.06.20.34.32; Thu, 06 Jun 2019 20:34:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R9RSlkf8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726655AbfFGDWL (ORCPT + 99 others); Thu, 6 Jun 2019 23:22:11 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33569 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfFGDWL (ORCPT ); Thu, 6 Jun 2019 23:22:11 -0400 Received: by mail-qt1-f193.google.com with SMTP id 14so750729qtf.0 for ; Thu, 06 Jun 2019 20:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cDxKlx26C6I58M71iZg55l9IUELd+cCI69BULnCFGCU=; b=R9RSlkf8+7etHBjAktMnCFls3HmJAeag61qEvUcSUdU9xFUNsgeiUVZ5f7YgxyNcBi N27IoHFfbFQ2M6bz3/i7+VeU0s1eHY44W7olFyIoK1/bW/EixiJNzF2G66ZceV/HtamH NkMizrSlre/hZSzJudvOsHmBsyAh5hglTFcDwwDDYefZ2rPCUZZEjRNXni1OuBmdb8Sz NynK6du+kAFUdJgkqrCYO/hseSdxRbQVGDv5umg8hWiQg9pyxQx771QiVbhIRxavAnTW 5xaaEOY5DXpBtk0Wk30V7N/EeMfYwcR9CtfuuO3L6X7cxJxIClpI+pvYUVVgKwfU/rty QI2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cDxKlx26C6I58M71iZg55l9IUELd+cCI69BULnCFGCU=; b=ElNhBTd1r98KbJS2LN2gINdzMzqPsbeziAis8zsvDf/y/bTnZJ5LHiNJs9Nx+j8UT6 P1amTz5rf5sKFgpVezgHj9bxJndKX7V4I8JD0ncC8QA7Pke5yyO8LHe0blasyaUP6urr WGfW1vuxjC8ehwX7djgZ3M02XeEHGx3+6GUfNQgke7o8SYbSx0T7SHTb5IQtVdC8yDdL x5nOoYUHGL4nRruVqAgFccSARtH0GNYWr+v2dXDBNwCBLdtH5zL28MaNJeUG+Udgc2uJ Ony0/JXjVlhRT3NPg7J3bZtLxDXBwV4b1S2R6liZvBrIHKfGKV8SAgJGB/alh+fxVgtc PbWA== X-Gm-Message-State: APjAAAWRPHA0haVHS+7kWACm0HKuvE7xRQv0GzAWDDx4rsVWnefciJ0B G3qBvfbHnl/1ds9PYXV4wJy8KAkgKzjf2UQehU2gHSd+aK0BIA== X-Received: by 2002:a0c:88fc:: with SMTP id 57mr28115751qvo.178.1559877730487; Thu, 06 Jun 2019 20:22:10 -0700 (PDT) MIME-Version: 1.0 References: <1559855690.6132.50.camel@lca.pw> In-Reply-To: <1559855690.6132.50.camel@lca.pw> From: Yuyang Du Date: Fri, 7 Jun 2019 11:21:58 +0800 Message-ID: Subject: Re: "locking/lockdep: Consolidate lock usage bit initialization" is buggy To: Qian Cai Cc: "Peter Zijlstra (Intel)" , Ingo Molnar , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the report, but On Fri, 7 Jun 2019 at 05:14, Qian Cai wrote: > > The linux-next commit "locking/lockdep: Consolidate lock usage bit > initialization" [1] will always generate a warning below. I never had such warning. > Looking through the > commit that when mark_irqflags() returns 1 and check = 1, it will do one less > mark_lock() call than it used to. The four cases: 1. When check == 1 and mark_irqflags() returns 1; 2. When check == 1 and mark_irqflags() returns 0; 3. When check == 0 and mark_irqflags() returns 1; 4. When check == 0 and mark_irqflags() returns 0; Before and after have exactly the same code to do.