From patchwork Sat Apr 15 03:31:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 8226 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp812404vqo; Fri, 14 Apr 2023 20:50:04 -0700 (PDT) X-Google-Smtp-Source: AKy350Z24LknoUKG5GyJzS+7q5hZUudEGvjsNoEN/ef9Papogagv1Dmoc+7sCJoH861d5+FSlnEj X-Received: by 2002:a17:90a:1288:b0:237:44c3:df0b with SMTP id g8-20020a17090a128800b0023744c3df0bmr7631443pja.32.1681530604150; Fri, 14 Apr 2023 20:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681530604; cv=none; d=google.com; s=arc-20160816; b=CRLkj7KjmKP2wgcDwvhozBK4q5optQSY8bFSeytzhNRsFOuCSasacMUqFFrpzQKFhN G0PxmYp/03WMjfXVMdMOMLK70MdM9cbxLYwkOIna5zHY+FV4HIkc0wBVS1aX/y2UIPTl Oo9/Lq28fZSgw37496T7CC4jiKtRIqUEE4+Z3a9Lcv9nH0ZKQj8PTiNuzIwUepUFPkAZ CwJbuzmpFYSWrV0ghMSjzbiojSLubBjo1ycJzHjj1HnHor1J3zHoX0pkFurEDQPWkm14 Uye6ZAYOLsbcswjscwJJpKa0VfScPy0JvSwK1srALk1kNONk+kYD2tvJVGKxvTZ1HrrK s7ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7XShoI0EfzkM0KeOZWvI6p7JHQ4OEJXqOyoyotN8vps=; b=I40QBDB8q4NMvkY36kvKDKCN0p3OYsI5t6NWbd+SJ9r6n76vNJ5dBUyTPoISCYZ9yn wsNWDnwK1pKb5xt7P2wSjBoNbLR5bj+QgshR0yo0r4+Jrou5XQJFfQsLsQkZ9hf21mW1 VI0sPfVaHVj0a/LJRBGCN2Y4SbHeKAwjBv1QTOFmiJUNCju9eBmRYHyimyUCZWrO493D SJlnsivi8OeQd4luKTZ1ztBchOtielqz97SMklULn8aoJbs/FAV35gbfNGzoyf4hc3Cw tsbGNVUasubJ0spmqaGvLDFFWtpwJ35Fpx/n0Fm4E5RNYXWeTDvEYChXMX2SFA/AGVxh Z8hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sAuxz+bq; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b00508eeafc9ecsi6323309pgb.176.2023.04.14.20.49.49; Fri, 14 Apr 2023 20:50:04 -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=@kernel.org header.s=k20201202 header.b=sAuxz+bq; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229773AbjDODcO (ORCPT + 99 others); Fri, 14 Apr 2023 23:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjDODcK (ORCPT ); Fri, 14 Apr 2023 23:32:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1179C1 for ; Fri, 14 Apr 2023 20:32:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 47D1161668 for ; Sat, 15 Apr 2023 03:32:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28A74C433D2; Sat, 15 Apr 2023 03:32:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681529527; bh=zrnvQbJRP8KwMbeuQm8RWrnctmmFuomVwOxEtlAx9+0=; h=From:To:Cc:Subject:Date:From; b=sAuxz+bqsaq3Lcyk6nrqJOaWRl1tZH3oAvW+Cx9n+oaNMxHuEsyJx3aPNUk1MCrvU LwaN03xeJ/c+zk1lasxCANxXAP+QFg/yVcB/r3H5oYBCKW6f5ZE57lwZ+lyQRgSgvt 3cRlce2K4BgdBScr3zLej2/+bhL8xBCun5T5gCmFpSsge2lIzeKpvENC1dBxGM5lw4 /kfcKXkHrkNnZ3FCAO5gN49+CHMtf/FXBz/hp8JJtBLD2dXz+rFQeEiWOJEWPCNcx+ rfEQ5jEnwEfBhIPyqbnoYtnowxuqnQsfP6qLxCKnC7xSAdCNKIojMfZ2RQLr9cmdtA vBoImLo2TLJKw== From: SeongJae Park To: akpm@linux-foundation.org Cc: vbabka@suse.cz, willy@infradead.org, paulmck@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH v2 0/2] mm/slab: trivial fixup for SLAB_TYPESAFE_BY_RCU example code snippet Date: Sat, 15 Apr 2023 03:31:57 +0000 Message-Id: <20230415033159.4249-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763200963686154717?= X-GMAIL-MSGID: =?utf-8?q?1763212635133288471?= Changes from v1 (https://lore.kernel.org/linux-mm/20230415003754.1852-1-sj@kernel.org/) - Update label (s/again/begin/) correctly (Matthew Wilcox) - Add missed rcu_read_unlock() This patchset is for trivial fixup for SLAB_TYPESAFE_BY_RCU example code snippet, namely adding missed semicolon and breaking RCU read-side critical section into smaller ones. SeongJae Park (2): mm/slab: add a missing semicolon on SLAB_TYPESAFE_BY_RCU example code mm/slab: break up RCU readers on SLAB_TYPESAFE_BY_RCU example code include/linux/slab.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)