Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2881381rwp; Fri, 14 Jul 2023 12:58:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlF69t/a0XT4+ZB7W6GbUUx64+AJT/JPfBb6q8wdYe6qFaNgFJ2+23qMYWGeS59eyYxZ5OE1 X-Received: by 2002:a05:6a20:a122:b0:132:86ea:4725 with SMTP id q34-20020a056a20a12200b0013286ea4725mr5361276pzk.45.1689364709527; Fri, 14 Jul 2023 12:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689364709; cv=none; d=google.com; s=arc-20160816; b=v8zLAar+wUvYka51jIJw3iMXVLWR25U2VDXo0hJg996Tv/TwS/2kgvhxbD4Yw3ECKg K++9+I71y54T7yB3iwSTCo5kINbSKzHVzOOx32Y7TBPS0HndQ0FueJnFAdY9lyw3rklN prIgbiWvJL4hgaboMjzEGV3qdhw6TI9V0h4o2DC39jALJKOUiiQ/eo1NeJ8gx3Dj82Qs 809dCSNiKKA7dVVNiCq//NYyd+K/KheVQAahXESwh1619iRlV6c8gTa0mrX5vYvDA9p9 2rOhNae2IlBrqBeI+x38hmJPEuIjAfMRL3atCnTHVtAi0OJNpsPqHcJxgayqxNMi8dWc caFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cWpYs8CNOdGMvN7PUCKK7yk/Bn/GzPi3qlDukGM0svY=; fh=LXct8opO7R/Uik+5bGJQDXKkA2fT/bD7FSJuo5/YhnI=; b=NcGigROcrLrrHCTSWpTvetQnSqJzGR9302xJ2ban11v+rAuFdgye3UjCPtgrPKgG1X ISlhezGL2DddYDicYU+JLWpi8qYxtjyh3NMkMoBb7OfSHcHb55IewLHfJX+1+E0RxUzs xUTT8Nju/1jFwdWwNYDwerIZGe+9kB9cLpNY/Dr181zpg/Aa8lwL9rcFLmEXz1rT/R6G 06Xf0guPXUHSoBXtmQJ0DpwLUsSc2TnmjoW9SfraE+HJxRjBkUJc3xWsFWmFLII+llGz 5GjpgGOnYUmYoP+6qCXNopwrDpoJqrBd/L3IBPVhnQLOt6RBr9bz2oPPNNEQ2aFymyIC N8Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=u6PqySub; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jk12-20020a170903330c00b001b8b3657eadsi7422408plb.274.2023.07.14.12.58.18; Fri, 14 Jul 2023 12:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=u6PqySub; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235883AbjGNTPj (ORCPT + 99 others); Fri, 14 Jul 2023 15:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231912AbjGNTPh (ORCPT ); Fri, 14 Jul 2023 15:15:37 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3B5B35AC for ; Fri, 14 Jul 2023 12:15:36 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fbfa811667so21837425e9.1 for ; Fri, 14 Jul 2023 12:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689362135; x=1691954135; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cWpYs8CNOdGMvN7PUCKK7yk/Bn/GzPi3qlDukGM0svY=; b=u6PqySub/kl2NX7TsnMPUgsANCQef+gR/n+Nhu9kgZ21hTNFF+QyOkoQ+7bqrPZe+E UdkMBztk103Z31sNAKjHV6KrDcrynswJO7k3ORSB/DQhRFKAlb6qohsTScwFM0uHTJwd 70+51BNdlcX1ExDblhdHUhVMApT6fVpjxauHF3xkSf+Cpnaim3AYc8Q7z0ni83fW7erv LjIKwOLvevXt/I+PVeReVV0TMhCbnEz9+kU0/CP1ZclewPwNX5kZzxxulJMxVF6+Sb2N 8qXhi2DpmbpHi0HT1wLRgi82sfikmTqLoht0QdiFfQx4nbeAibmSfARYGtPbClXL7FGr vqDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689362135; x=1691954135; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cWpYs8CNOdGMvN7PUCKK7yk/Bn/GzPi3qlDukGM0svY=; b=dflK5iJTlTv0OKe1f401/xqFh+sSIYirDaWsbRAF8udfp+0YWj3SeqWLXJI0hX9Qau 8NmgB/TjK42s7bBsxmRCo7M0BhNJDhYSOsrIYz1Hu3KScZJAvFgmCkQPcj/EsHKYNae4 4mf80W9VSdH0Cx6wmFEbhzm5r1nzE0oDFSAI/pfuzWtwbCyLJmlDi0buxJ9pGqf6CYTe Bt3WvZ6HXgrRxKPJXpMhtahjg7ABK5hOAfRMOFcZwXJEJZQnnADSm4mFbS95hnwz8uuc shu4m9FCXDMYVnc0t7bnuHbhTUVccodTSRSL8iSHGL8HhgSesMiP2y6byOrKnpMN/vPB mnNg== X-Gm-Message-State: ABy/qLYosPBp5Jd0Hr8fkPx6VCQ/oZXIcfdoFm0V0g8sV0100kEmMGNU yNqTJqJE2rJPc8SIqFPNRzUM3rGVUe9jWMbhXqJu1A== X-Received: by 2002:adf:e8d0:0:b0:313:e2e3:d431 with SMTP id k16-20020adfe8d0000000b00313e2e3d431mr3161529wrn.12.1689362135219; Fri, 14 Jul 2023 12:15:35 -0700 (PDT) MIME-Version: 1.0 References: <894a3b64-a369-7bc6-c8a8-0910843cc587@linux.alibaba.com> <58b661d0-0ebb-4b45-a10d-c5927fb791cd@paulmck-laptop> <7d433fac-a62d-4e81-b8e5-57cf5f2d1d55@paulmck-laptop> <6E5326AD-9A5D-4570-906A-BDE8257B6F0C@gmail.com> <453bcbbd-94f4-46da-98f6-c9fa5f931231@paulmck-laptop> In-Reply-To: <453bcbbd-94f4-46da-98f6-c9fa5f931231@paulmck-laptop> From: Sandeep Dhavale Date: Fri, 14 Jul 2023 12:15:23 -0700 Message-ID: Subject: Re: [PATCH v1] rcu: Fix and improve RCU read lock checks when !CONFIG_DEBUG_LOCK_ALLOC To: paulmck@kernel.org Cc: Alan Huang , Joel Fernandes , Gao Xiang , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Matthias Brugger , AngeloGioacchino Del Regno , linux-erofs@lists.ozlabs.org, xiang@kernel.org, Will Shiu , kernel-team@android.com, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Sandeep, thoughts? > I prefer to modify erofs check and contain the fix there as erofs cares about it and it's least invasive. For contexts where erofs cannot tell for sure, it will always schedule kworker (like CONFIG_PREEMPT_COUNT=n). I will also do measurements to see if erofs should continue to check for context and what are the benefits. Thanks, Sandeep. > Thanx, Paul >