From patchwork Mon Apr 15 15:21:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 13630218 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3B2AC4345F for ; Mon, 15 Apr 2024 15:21:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6C1DF6B009E; Mon, 15 Apr 2024 11:21:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 671E66B009F; Mon, 15 Apr 2024 11:21:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 539B16B00A0; Mon, 15 Apr 2024 11:21:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 336EE6B009E for ; Mon, 15 Apr 2024 11:21:21 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id F2A581206A4 for ; Mon, 15 Apr 2024 15:21:20 +0000 (UTC) X-FDA: 82012129920.01.4E1AF27 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by imf11.hostedemail.com (Postfix) with ESMTP id 40D3140004 for ; Mon, 15 Apr 2024 15:21:19 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=efficios.com header.s=smtpout1 header.b=Z2NNj3R6; spf=pass (imf11.hostedemail.com: domain of mathieu.desnoyers@efficios.com designates 167.114.26.122 as permitted sender) smtp.mailfrom=mathieu.desnoyers@efficios.com; dmarc=pass (policy=none) header.from=efficios.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713194479; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=3tSvr3Q6b/xStUDJ8AMBxNhWQeXCh5abvyZ1kWnGzmM=; b=ynLVKSGqTeh18MUbU8HtqslB4uvOvar4V3N8icnwgeiXvO3ZvVQj66wCOZ+zWP+AUW/BFK c9vSdJE2Hk1br8jMzD4mgQ1hvj//SPprCZtl1jpaBebgp/yyOMQyzYX2JVC34/LbQ7MX16 batLBSQ/urNxV6g7ZGgUhF85+Q77AdM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713194479; a=rsa-sha256; cv=none; b=iXTi2+3i6+qEwIzwKSU0CcYx+z/iWno5oiLvlaeufK3zIp5glNdnOJ19uSyu0EfRwnXIJu Y9nVgULRBo6Pl7kIVJEr/ACoo34wkLwT+T21D10eSarKnbMDTysXQBdKM4ocOr5CcFPLhl KTtMYkqyrIr3Y4I/upPCN66Qo8t0yWU= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=efficios.com header.s=smtpout1 header.b=Z2NNj3R6; spf=pass (imf11.hostedemail.com: domain of mathieu.desnoyers@efficios.com designates 167.114.26.122 as permitted sender) smtp.mailfrom=mathieu.desnoyers@efficios.com; dmarc=pass (policy=none) header.from=efficios.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1713194477; bh=Iq/BAyjc5JNnm7ciLspG3W/QYIP8bHIZPTm1FiCQeSM=; h=From:To:Cc:Subject:Date:From; b=Z2NNj3R66GuilicS3pNP2dCxBOlmYwoAkWwkNp3q6mpRL3iifBUzGZ5bUvRbcbmRe WunFCx3+TqN3NqsdFr4gPjtUrwDVpMlK4INOdC3+gewi9LOY7n5njOH2Y+pSje1M23 rtTLmMpNncLjhXNynx+ISgz1o2S3VYAgeBZv2CKbIkiy6bApQjaGMNbPtH8GDZTTlB 4YPseLev4KTF3JJGyCNdTPNQ992dHEpv/JKB1vqTJuUPiX+8297lUhx+NMXiT4BEeR FFx8IJtLN43O1IaywRS+MQJ3BFwxJN47fm5MXmmL6GBROGxAeGKRWAWGjrB4Zz1qnl U7bvDsLQekcew== Received: from thinkos.internal.efficios.com (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4VJ9qd3ZSrzvb0; Mon, 15 Apr 2024 11:21:17 -0400 (EDT) From: Mathieu Desnoyers To: Ingo Molnar , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , Steven Rostedt , Vincent Guittot , Juri Lelli , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , "levi . yun" , Catalin Marinas , Mark Rutland , Will Deacon , Aaron Lu , Thomas Gleixner , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Arnd Bergmann , Andrew Morton , linux-arch@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org Subject: [PATCH 0/2] sched: rseq mm_cid updates Date: Mon, 15 Apr 2024 11:21:12 -0400 Message-Id: <20240415152114.59122-1-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Stat-Signature: ezhozyf5spxh9d9dirunf9rhdpc56twa X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 40D3140004 X-Rspam-User: X-HE-Tag: 1713194479-158042 X-HE-Meta: U2FsdGVkX1+M+6DVB1ssKHyQjyfQpoLhPLlr1d4iMEfBgMOEebxGWiyXV23Jo+cmFYmCIyvres1q2RCkLvKsVeeM3feEVQxTliDTdw/5+CrASn5QSx1GsHpxGztNWlZCogwM5Sg0eX1OzntLtSjfszCUxY7KEldx5zW/Ztw6dlCIhe6r4zZJr8L35CZc6r1mXjbOGxnFXkWFwPanZMI1m60IBdmWOuqsoW4TUrqEn/+8/JAT2KZWCd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LK7wcXETle3FoWKl/oeBWDpAPItByyAEJDmLIix53ARfJ+axpKxXBu3NKti4+DDAFw23zXPubNNjlFghnTPXCjz634W8dJGZw8RvXY2CJGROerLW7Ct+p3SI0zp2F7Dx5qvktp3QIVxUsdkinmO49AS6v6V/O5bdyhecJfZSnbZIrXYalY0aQZOHpi92mqrPpyZNtu81+EWGGsNkCjKc42/W8zPN9GzDcM8DxrgqKH6eSivDTG7FEfbFBkW53nETo2kHfDEdPwR+5+9B7NtpK9a5cDFuSltL7XSLOkS0C0cxaSaJIH25o3mKlut42flWjxcHoqeoUE8Y9EHcvzWs0bpF72pDIk4eaZLesnWm0ygk3rhMAFaNbHtdoTyeL9sn0Qv6ZrHidYQQehNBDKDAqKtsRnq4tH9CtF+cx3Ig/ezKvM4cruMSTzCHtU2D6l3ZuF0E0HeA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi, This patch series consists of 2 patches. It is based on v6.9-rc4. - A fix aiming for v6.9-rc (to be backported to stable kernels): "sched: Add missing memory barrier in switch_mm_cid" - An improvement patch aiming for v6.10: "sched: Move mm_cid code from sched.h to core.c" Thanks, Mathieu Cc: Steven Rostedt Cc: Vincent Guittot Cc: Juri Lelli Cc: Dietmar Eggemann Cc: Ben Segall Cc: Mel Gorman Cc: Daniel Bristot de Oliveira Cc: Valentin Schneider Cc: levi.yun Cc: Mathieu Desnoyers Cc: Catalin Marinas Cc: Mark Rutland Cc: Will Deacon Cc: Aaron Lu Cc: Thomas Gleixner Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: Arnd Bergmann Cc: Andrew Morton Cc: linux-arch@vger.kernel.org Cc: linux-mm@kvack.org Cc: x86@kernel.org Mathieu Desnoyers (2): sched: Add missing memory barrier in switch_mm_cid sched: Move mm_cid code from sched.h to core.c arch/x86/include/asm/barrier.h | 3 + include/asm-generic/barrier.h | 8 + kernel/sched/core.c | 277 ++++++++++++++++++++++++++++++--- kernel/sched/sched.h | 237 +--------------------------- 4 files changed, 270 insertions(+), 255 deletions(-)