Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp306074yba; Thu, 25 Apr 2019 23:50:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWX8IJod/8xFj3mqXTr46Qq+5chceqt2QMpjPRQ88W6TAKy+kRf2Q9Kht4RX486Z9xqQA7 X-Received: by 2002:a17:902:2b87:: with SMTP id l7mr44430315plb.130.1556261453043; Thu, 25 Apr 2019 23:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556261453; cv=none; d=google.com; s=arc-20160816; b=eeaeYyYhbX8OZn5BHvx0K6uqXdieMgEoeZF7DigcpMRyMOPoqDbmT9RHaWaS8dM/Tv KMiU3JE2Wu1bAV/Kf+Jh8EpxoYkKVRqTIsww+oBmi0ioP5ymTTA8bobqTDrL2+MdA9U6 P/fgv/Zs41DIfKPWnheOqrTWkPLtLFOPMegkpc76Y7R+geTRY+B/2NhR0SxrSk7sj0Dz wVJUBQwbFhH+L0hWvMZMFCzXIFM3pH8HlnCsYS49REVQnBWgeADsPn2s4fiZbZCD27iM QhKbI53iUnGstp6yNo+tTpDJpMtfl7+xUciNj2bThwndI4Cbri1xdVGgOkn1tNjJYKEC 6qhw== 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=FhRY815R2AqhT7LmjxiwI3XYxdY7+txljuXoaHBSaFU=; b=FWCqiKxxpQvZAuWjzHDwAFx+SsNeSc6o5zbHlhBTHlviwZTC5/6z8g9xAfJh10UpVr g+hc8FSCZwLMnJ4ChwcncR7FLRxhPqlCDsD6qZCtTO4Ca+Z8ucpgLsu1Rhm9LIU7vlP6 LPQG5ZfF/Qyn3nce/tjnsglxxt8IOZ8Kb21PXI4LtO6tbDqnVQd3PhIYlGxe7LyjDGVK Y8s991+DAr9Z+rO2xJI0JTFGbib+zXY+bvwA58/L4/mGDeLc7M+BkYnTxvAN0/WRxp5K HnxYk5bOnNg+KyUg1159pYM4WAOQM+xU+UgCrClhwHcm/fxpW4OlRLwhh9vJPQIUOMyy QH+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mLZzivqc; 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 k6si25376873pfc.122.2019.04.25.23.50.38; Thu, 25 Apr 2019 23:50:53 -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=mLZzivqc; 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 S1726322AbfDZGsL (ORCPT + 99 others); Fri, 26 Apr 2019 02:48:11 -0400 Received: from mail-qk1-f173.google.com ([209.85.222.173]:34378 "EHLO mail-qk1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfDZGsK (ORCPT ); Fri, 26 Apr 2019 02:48:10 -0400 Received: by mail-qk1-f173.google.com with SMTP id n68so1304396qka.1 for ; Thu, 25 Apr 2019 23:48:09 -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=FhRY815R2AqhT7LmjxiwI3XYxdY7+txljuXoaHBSaFU=; b=mLZzivqchwXacrvgyyoyV8g3zI8nmBIvGvHyK5ZiWPn/muqwI51d+TjwfxThmP7xnL 9ERluw8/lC8lUH2uJv2zMWjNfiIQIHpeQglGyD5oeJm2WilOvu4lIf49NDDoCUXy9+cX n/IKbUoNPYeJlHbgDcN5pu07HmAY7/234w5hZlM+IhOnhnUVW2H8rirRoHtA4OEE0L20 7/YK7FXfwY4Q/IoUQK1l/Pj5IZ7TGxLRfzhYbJTlOYZQvU/DqBxfnaRoSlZwTsFUDhSr Fpkee+i1Vma3qJ042JURDNIgOIG26/r68Q3D6UJmcTdNcsm1wgFI/6Dck9CCMjD6Eb6Z wT8w== 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=FhRY815R2AqhT7LmjxiwI3XYxdY7+txljuXoaHBSaFU=; b=c82E2hZ5D/5FEIhJHegFP6PRsc+Vym6fxh86a0VT7hHm4NW+N6HHFo1kb2TuvGlR33 ap+U48LL2Kp0oCzUkyQeEt0XZGBQmK754KC2QZbrD89ve+q31jvcnvKSDp8ITeQT1d3e bLH4dshzyqAScSMWiMnSENrbFNC8ldvz3O4+E0WBBmPkyEIwTu0/uEQCUsxYPsdI6f2E 5sEfdz6e3NWdPZ7uHOi9jU2v4tt/83gK83BxFDRm28BA6ReDu3FWg98aeTqE7GrHoNSZ zN0ipTJMj+B1i3uTp9VO2fRgNOLirc6eE6hwJStBXWPJ8jkMS0YHZ5MhG592Z2d+Gx0W sULw== X-Gm-Message-State: APjAAAWEMdReWW5a6rNlgO2/At0kzOrMrkcg9aH3HtIyYMY9r12JOzpH JRnQeJ/4PDL5rEgyd24+fQLU7b4adcggKfwgxvw= X-Received: by 2002:a37:4f0d:: with SMTP id d13mr21283631qkb.159.1556261289274; Thu, 25 Apr 2019 23:48:09 -0700 (PDT) MIME-Version: 1.0 References: <20190424101934.51535-1-duyuyang@gmail.com> <20190424101934.51535-23-duyuyang@gmail.com> <20190425195212.GW12232@hirez.programming.kicks-ass.net> In-Reply-To: <20190425195212.GW12232@hirez.programming.kicks-ass.net> From: Yuyang Du Date: Fri, 26 Apr 2019 14:47:52 +0800 Message-ID: Subject: Re: [PATCH 22/28] locking/lockdep: Adjust new bit cases in mark_lock To: Peter Zijlstra Cc: will.deacon@arm.com, Ingo Molnar , Bart Van Assche , ming.lei@redhat.com, Frederic Weisbecker , tglx@linutronix.de, LKML 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 review. On Fri, 26 Apr 2019 at 03:52, Peter Zijlstra wrote: > > + if (new_bit >= LOCK_USAGE_STATES) { > > + WARN_ON(1); > > Does that want to be DEBUG_LOCKS_WARN_ON() ? Indeed, it was.