Message ID | 20230703172741.25392-1-mkoutny@suse.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp690181vqx; Mon, 3 Jul 2023 10:49:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qsHg6Cy5ScWgzPnzZb3GVAXDpTDgVLkdLiytCs/HYiIh8Tr8EPbXiuey0OqLM7fVlo13b X-Received: by 2002:a05:6a20:12cf:b0:112:cf5:d5cc with SMTP id v15-20020a056a2012cf00b001120cf5d5ccmr16619959pzg.1.1688406587021; Mon, 03 Jul 2023 10:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688406587; cv=none; d=google.com; s=arc-20160816; b=vv3bGtiEUZ2GdwxMXMgmWbR7T4ycsbsQ3P7kpJI8gLpCGxGjItwQQgP0QcAc7f/UDb KqCkMQZadgNPl965Pza4fhHoFMEBx8ics6xd1msgMaApeZhsVR36lrGYqlSuUP6wI4Qa 0zW+4e6pnBdCjk/TY7iRkV50mAXYd6evIR4fe9eRLfT1t59O4JAMSAAy3/itsELMTAOj bja4K7atERWmYj33HDvJjnX8e778XUGX5RSiT4upCTLKhl0QwUgRDj8uFJv0iYDz2Tw/ rmst32BfI0ZInpsRqkrJNoU5XeuZjnpJfEgCvOF6ek+ua6+fxM3pooTKiyZ6uzUf/x3L hSHA== 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=3aZiNrh37kog6hGn75GFfiY6ypdAuVwYLPGQChJfecA=; fh=W9YjB8LblKMI9BlzaYswLs++QP273lsG58/F27dOPSw=; b=atgEovYWy77T02Kq39JeHSs0eKtIMj40rNHGBDpHMclCidwUVM8jsKVOQFH3zeKEEi BSa/+iPvl4BswdkURL96fsp+/wYbL3XA5kutHvPvA+YnCeQ1ZUX6RI9zpLaOWCS8Hned utGuN1T+qAggOyv1NARBkpv+GoF8OLuvxxjaTreDwJHXWuOrwatlQZmCikpUy5YBVzdR WyFGgg83PTuTHKArj4z8o1yeaf4h8jWzrnZkqjOOQ45KxdhI1XZ5e3fpKGTXdQCrl7JF ZRlVIOygsQGoOrlQ6uLKCjLEtYzGBNVyRDwryOy3pcTG04YiSfLXGe8WNdCQCE3hiOx+ 7oXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=W+iPbXFm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a170902d2cb00b001ab29e00303si20409593plc.426.2023.07.03.10.49.22; Mon, 03 Jul 2023 10:49:47 -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=@suse.com header.s=susede1 header.b=W+iPbXFm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbjGCR1s (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Mon, 3 Jul 2023 13:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjGCR1q (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jul 2023 13:27:46 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E86E59; Mon, 3 Jul 2023 10:27:44 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9061C1FF9A; Mon, 3 Jul 2023 17:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1688405263; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3aZiNrh37kog6hGn75GFfiY6ypdAuVwYLPGQChJfecA=; b=W+iPbXFm3UbXst4AU3cmDUb+AN9TGIlKpii2iWOl4asU0t5GhngfpIo3jJfk/dbwEWRQBx ZYsG96/C+2AH3xGG4fwQledsKa0MlY8Nmr0hUTCx+QgMPPt1oN7lsPlGmv1oH1xedK+6t3 YOaTxUrXE4kC1dYvEbiTYBx2WpRbpnE= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 64E731358E; Mon, 3 Jul 2023 17:27:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id BXa3Fw8Fo2QqHgAAMHmgww (envelope-from <mkoutny@suse.com>); Mon, 03 Jul 2023 17:27:43 +0000 From: =?utf-8?q?Michal_Koutn=C3=BD?= <mkoutny@suse.com> To: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Waiman Long <longman@redhat.com>, Zefan Li <lizefan.x@bytedance.com>, Tejun Heo <tj@kernel.org>, Johannes Weiner <hannes@cmpxchg.org>, Shuah Khan <shuah@kernel.org> Subject: [PATCH v3 0/3] cpuset: Allow setscheduler regardless of manipulated task Date: Mon, 3 Jul 2023 19:27:38 +0200 Message-ID: <20230703172741.25392-1-mkoutny@suse.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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_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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770422391709534412?= X-GMAIL-MSGID: =?utf-8?q?1770422625518866438?= |
Series |
cpuset: Allow setscheduler regardless of manipulated task
|
|
Message
Michal Koutný
July 3, 2023, 5:27 p.m. UTC
Changes in v3: - only skip permissions check when effective affinity doesn't change - update commit message accordingly Changes in v2 (https://lore.kernel.org/r/20230630183908.32148-1-mkoutny@suse.com): - rebased on mainline - drop is_in_v2_mode() Changes in v1 (https://lore.kernel.org/r/20230629091146.28801-1-mkoutny@suse.com): - added selftests - comments rewording RFC in https://lore.kernel.org/r/20220623124944.2753-1-mkoutny@suse.com Michal Koutný (3): cpuset: Allow setscheduler regardless of manipulated task selftests: cgroup: Minor code reorganizations selftests: cgroup: Add cpuset migrations testcase MAINTAINERS | 2 + kernel/cgroup/cpuset.c | 19 +- tools/testing/selftests/cgroup/.gitignore | 1 + tools/testing/selftests/cgroup/Makefile | 2 + tools/testing/selftests/cgroup/cgroup_util.c | 2 + tools/testing/selftests/cgroup/cgroup_util.h | 2 + tools/testing/selftests/cgroup/test_core.c | 2 +- tools/testing/selftests/cgroup/test_cpuset.c | 275 ++++++++++++++++++ .../selftests/cgroup/test_cpuset_prs.sh | 2 +- 9 files changed, 302 insertions(+), 5 deletions(-) create mode 100644 tools/testing/selftests/cgroup/test_cpuset.c base-commit: e55e5df193d247a38a5e1ac65a5316a0adcc22fa