Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1377402rwe; Fri, 14 Apr 2023 20:50:45 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4vRELAU+rkU+tKSBienrYUjvLjsWqnwX8aRUpkSktCoe3sS2fQFrKoeHpLDqMSBCcWiA9 X-Received: by 2002:a17:90b:17c9:b0:246:a228:1359 with SMTP id me9-20020a17090b17c900b00246a2281359mr13009304pjb.23.1681530645286; Fri, 14 Apr 2023 20:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681530645; cv=none; d=google.com; s=arc-20160816; b=KhBIDv6j9H38nfxStAtXObI5CtWndpmlXxfY8SLBaAqhE8AuaNZDxGUjzQNSdCvXJK zLMvo0mGtmVQBKSZ8P7+DDH8FI3PYKEq1fbdnawc/xLU5YwYnMU9aVwG27g8/0e42dTR 1NyGheI+dufDLkt/WSqAd5sKGGuOMtgpcD1mvoYBs2LvrTeKznaHp/MwUn1YuOk2WkEV btgBepIUwdRV7VdxI/5WDFZEoXHBzQkah7NDlrjIysC1lPmOBWyJJ6I3fKg/elO7AVcS IW82TM2uwsxGn00ctEJejb1iogxTXlc5bEC/5dUpj7hL96G9RyRhEj/1+2q5Z7mO1x/+ SUjg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Tj9FMMSSs+zbNutNJhDAMnGvzM0c1XlAU1yQHGHsxu4=; b=ajA6pUgUmck6akuU+SfedEB/eggrZH+KVcvjfVEZiIphoPrcsnYKTYUqFLUH66FnGb thc8jUXHfbqmuU2gIuqGxdlUlpN4rtnoqTrlU2t3vnaL2WioBa9qBtF8gslehBlmIo6+ NEpy56ouVU3rO8p7gsfVnMWovBat4A8fJiNLsTRK6TRCb6FmsKYS6p08cEVklS+9cj1/ b+5J5M85ruprB01yyUPpex8ChP1NpGeNLlCI5+X076QZCP6Q/tg9ruPSeJTqnI+HF2Lz bvCT7jgJLUG8bqhRC/6YQ2tm1ui1k40RaeTELVPORcBZRzoKvrFkhTfAaM9jaAJXQmVe JfKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cMWckj9b; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020a17090ade9200b00244b6d6e2ccsi5905182pjv.93.2023.04.14.20.50.31; Fri, 14 Apr 2023 20:50:45 -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=@infradead.org header.s=casper.20170209 header.b=cMWckj9b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230028AbjDODty (ORCPT + 99 others); Fri, 14 Apr 2023 23:49:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbjDODtw (ORCPT ); Fri, 14 Apr 2023 23:49:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D8D44C2D for ; Fri, 14 Apr 2023 20:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Tj9FMMSSs+zbNutNJhDAMnGvzM0c1XlAU1yQHGHsxu4=; b=cMWckj9bkdAY1/LRDkH51APSpK gypvKgs2sJ8+8A6WllOijcrzhsZXMw9GB8tZjo2GLc+GzNHudVgRXP1WaC3VC/LcZ8BfhU+a2TP3p AxkZFaXN2thVbXc0L16Y9Dbi6AAW1MKWnl+16fiVp6yJAzRlWv+XghjC3nOly9adcQ4Gk8cLYl+Bw TARE8+mKyPsVIAc1NDzzYe192eZCHY9bs9RJQt5IcGS95lIjetNqg3raRMv7H4QsJ7VlpMkp3sPGQ miG/zj1mR7LXLkEldYyD7A1iklef8WOPAFRotvlX16ssC7VIer+BBSU88skLX65U09Av0/Epb2uCR oWfaArrw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pnWv2-009KXJ-1p; Sat, 15 Apr 2023 03:49:44 +0000 Date: Sat, 15 Apr 2023 04:49:44 +0100 From: Matthew Wilcox To: SeongJae Park Cc: akpm@linux-foundation.org, vbabka@suse.cz, paulmck@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] mm/slab: break up RCU readers on SLAB_TYPESAFE_BY_RCU example code Message-ID: References: <20230415033159.4249-1-sj@kernel.org> <20230415033159.4249-3-sj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230415033159.4249-3-sj@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Sat, Apr 15, 2023 at 03:31:59AM +0000, SeongJae Park wrote: > The SLAB_TYPESAFE_BY_RCU example code snippet is having not tiny RCU > read-side critical section. 'Documentation/RCU/rculist_nulls.rst' has > similar example code snippet, and commit da82af04352b ("doc: Update and > wordsmith rculist_nulls.rst") has broken it. Apply the change to > SLAB_TYPESAFE_BY_RCU example code snippet, too. so the page cache (eg find_get_entry()) does not follow this "split the RCU critical section" pattern. Should it? What's the benefit?