From patchwork Mon Apr 17 17:32:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 8315 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2297717vqo; Mon, 17 Apr 2023 10:47:59 -0700 (PDT) X-Google-Smtp-Source: AKy350YMoblbGBAHsUM4T1CAnXBxPdFqrwBAbRA2glUlbrO7zYTXYwpqyjgnvWaAgA3yNLIyvW12 X-Received: by 2002:a05:6a00:1146:b0:632:d45b:4d3e with SMTP id b6-20020a056a00114600b00632d45b4d3emr22541971pfm.2.1681753678753; Mon, 17 Apr 2023 10:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681753678; cv=none; d=google.com; s=arc-20160816; b=nMBRwQypN4iXAHfaJm85nWpgAEhvsQCjPrN31tlX+1OWJ/GgMS0IM2dqPZsZFwYag3 qQNKlVxahjqKmyuYPDGODKhJUCdEhuqhEIU0w0629vp9pqakuyL/Qb4Mza9R1YPTyVmS nvKceLcHYK3a+pjWEs1oszdzYpAlohimcMbXe7UF4vDz+ujq8fbMygDNySfdc8VtQxQV rGlZQ+OnwUCBtbSFDVvQDNA2HRzY0ezcprUh8j2mR8Q0wJ3uJARzt9lHR+DfvLygOlbN vt3ZDunnk1WYpcrpQPoa66UR1T3RPlvbcBp6IGDzQ01hC4PWZvE0jZZKPHJ6+63l7A5g 4r2A== 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=AFbouDpw3TSurOj6TUyT7Ky2PzeBX3HvaJ85vz9Lzfw=; b=qVPIfLZsaYMzAfS/F7NapMgGLdO8aYnRoUcJJTZo48uRzvpHEQazwGv9P3bBOgEqN9 MszRkLVjRXIzDPXThpNm65QE7qFIqT26egDa+9i4goxyAIO4Ic5KDb+1VLkv1xeiRZfw Cw3Cal6d9/s7XoHVIuSX5/5sU6b9tjHGnJVW+J/b3Rvbe84urApfolhGID+Q8aBZsVHr UL1MyK1nHPiPcmzTpp6uWYtsbpaiLgpnGDEtH52dE+k4eKVugvkixhZ1aakU6C8mFr4H MkwbJroUZtWBrfSErorJYyjzZ7ZixBmVoSE3xW9t7MylWA+mCf+p4kPPMFMcUvbSIwvW XIaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WAB9sLbn; 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 z15-20020aa7958f000000b0063b7341250esi8152949pfj.277.2023.04.17.10.47.46; Mon, 17 Apr 2023 10:47:58 -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=WAB9sLbn; 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 S229929AbjDQRcq (ORCPT + 99 others); Mon, 17 Apr 2023 13:32:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjDQRco (ORCPT ); Mon, 17 Apr 2023 13:32:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74ACB268A for ; Mon, 17 Apr 2023 10:32:43 -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 4F7286234B for ; Mon, 17 Apr 2023 17:32:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0164CC433EF; Mon, 17 Apr 2023 17:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681752762; bh=cS2RFs4XMe0xw2oUFdlh9ED73FpVzzv+cYgwOzfeKs4=; h=From:To:Cc:Subject:Date:From; b=WAB9sLbnY4Gys4zfBKBSFUuRBA0NSqtwZVxeBbn5t3RXcLpUGoo8uzemVUJirU7LP uc+86KL+i1KvLpscvoD4f/G3cBjANnmKn1gYPT4V6/WrxKSxX/RfdROz0x9V+pkGJu 7zrkxf9+DH1BEv2y7zxnZfEV16xQ16qwhjZF1TDbD6dCX8AH/zs8n/+afTaBkMR8OQ wwOYDJzO0CPpWdXwB4lzwZ0+6WGygwcW+xoyJjU4H5NDbKduNJ5JPXsvxDhvOM8hBM S/oyXLRGWGAk2CtkoVeyS8l2IvVnjnTS/vjD9aCYlyYbTh3fQ5PlyzWT4JM9++q1zx s6Sbu9J/02Avg== From: SeongJae Park To: akpm@linux-foundation.org Cc: SeongJae Park , vbabka@suse.cz, willy@infradead.org, paulmck@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] mm/slab: trivial fixup for SLAB_TYPESAFE_BY_RCU example code snippet Date: Mon, 17 Apr 2023 17:32:36 +0000 Message-Id: <20230417173238.22237-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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?1763446545150861424?= X-GMAIL-MSGID: =?utf-8?q?1763446545150861424?= Changes from v2 (https://lore.kernel.org/linux-mm/20230415033159.4249-1-sj@kernel.org/) - Wordsmith commit message of the second patch (Valstimil Babka) 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(-)