Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1506776lqp; Mon, 15 Apr 2024 08:21:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzzECrDhkCMtuJvpls5xvG8QaPIiAyf+z5o2szm/jubES5q/zoTfPjWoQU9LCyCM7C6Oed7Rfh63NqiFbqSDoF0YyGN8i6K8+fvphqTw== X-Google-Smtp-Source: AGHT+IGe9mVHzZlwJ/9BZEUjQnq0awKKjtWKA4lqTzxI5/Zn1ymME3L99cZnmqt28ieMPofrLOFi X-Received: by 2002:a17:90a:c20d:b0:29d:e004:f8ce with SMTP id e13-20020a17090ac20d00b0029de004f8cemr9392792pjt.6.1713194492634; Mon, 15 Apr 2024 08:21:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713194492; cv=pass; d=google.com; s=arc-20160816; b=hQH5lHSzESf/OcrmV4LNSN0BfADgQEyDuCNUFSx0vVgjA13n6366Sz0NMqr6u4KWnC mvjTVD6h7f+atiqmSLBgE8nTEf8AyL7NAioKad6YxHmd9Bgx4jk/8x3oL0341jVB8Tg/ umuUs2Kge+OrdZHsKfuaij2V+msJbgZuonykh31ujf0o199PvVtzm8wpWEQVLXQRQRIK Hs53pO7To0rAgbNtrlZJ2L4+xtuiAbE36x2eny2FZIPdJXPfu6R5pSx1PRGBnJoNxd6A 8H4fyPyn++8YPjJPGomlyC0llyrQB11VTsGCEdFlJUxTMz5/sdmA2dLfpO4BUa3j64xX v4WQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3tSvr3Q6b/xStUDJ8AMBxNhWQeXCh5abvyZ1kWnGzmM=; fh=xh0VJSUMpTBvZb1O+cMsvwQPt6EjzxbKeVlC9Gs2ojg=; b=eDUCWsRIqHT1YfE1xTNWUAZzBgEKcn7XlCY9M7gnJ/BnrKOoXs+blQv1FZXUHVfgZ/ BgSudH0Fc0WE4pbimmw4It+z9EqUTItC4WR28hYq162TQ7lgCQZFb1A8zGR7DKt9PAnA +cz5WIAdZOIem/lFg4e4V6TKLdIoc8+/zJlTtOqyQIuvQf5thPUVUkSrq1H2MNOBTTFm 4M9AKJ9f3F77L2eWOgaqgYHC145Hcn5lj3OObJ+JN2i03y0mPod9qTKc//pQBKVxXXJW Y8+52adaTlfGiJFW7r4F0dDgErItVNGP3f33VYFtNhjNS54WyO5aZ4BevdGcvTRbFLtK U69Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=Z2NNj3R6; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-145444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145444-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a22-20020a17090aa51600b002a08eec02b4si10234061pjq.25.2024.04.15.08.21.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 08:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=Z2NNj3R6; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-145444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145444-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E9A1283864 for ; Mon, 15 Apr 2024 15:21:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9F2E78C71; Mon, 15 Apr 2024 15:21:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="Z2NNj3R6" Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E085874E37; Mon, 15 Apr 2024 15:21:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.114.26.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713194487; cv=none; b=Ggf3YH0mEx/1fBcgJa2gRL9IloU+Bwk29ni5vtCSOnFElgGUeMFESOtd2EKUqPWjB1i8aJQXOt7L40TJJu/IcAVp3Z9HzQYesPSUn+G3oxAdBMwRUC0DUt481TFTF+m3u6DR4bZrpdl6v3NG8N2G56mMQTCDjUJCDPod9jukxa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713194487; c=relaxed/simple; bh=Iq/BAyjc5JNnm7ciLspG3W/QYIP8bHIZPTm1FiCQeSM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=uYDjTdIxpkK2sLt40y1j06OFOQzj/xTIQL9n7y111jmPFC0G/XndpHPdN+03hLgXUEHlB1CMBtHiGb8I1pQENewcmmneM/46D5SqBhMFm3wc7NW75AJzAV/6mc0LyWoBtkx82pBtCZSkuqUQqhyaAX8cObruxwWLQPyChefpJlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=Z2NNj3R6; arc=none smtp.client-ip=167.114.26.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) -- 2.39.2