Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5699338rwl; Tue, 4 Apr 2023 02:13:23 -0700 (PDT) X-Google-Smtp-Source: AKy350YP7ZGfv/glBOoZ8UXjOawFdWuXttBkGVoxDODEErWcia3z3wSSDVhGUHfqC/N2MpxVBnO8 X-Received: by 2002:a17:90b:4a4d:b0:23f:c096:7129 with SMTP id lb13-20020a17090b4a4d00b0023fc0967129mr2224162pjb.26.1680599602639; Tue, 04 Apr 2023 02:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680599602; cv=none; d=google.com; s=arc-20160816; b=xa3eRbm3QbMGet0iMogdloe8Bxzqxic7i+wTmnvSV2/sZjBYyvkQq7HCye8m6KIX0y +A7MLF+fAgUWRN7kJbV+nrgLnOu6u5dbQj5+kZ2KL/z9H3FmUrWG7V0MckJUft3cDVZs 9Mb/jC7PmP2ZOaBNuci4r9IlOh66CIBbakWhiOxHkYAiRiIMIOLT6S5iZJh+HQlT8Nep 9TWODbbinP4Ge2EDgX1/zib0qAlyRte1Y3L8nRp0b7w7vHtf1Ewoxj3/A9mJQVnA1vj+ ERTCV/mSIjYld8UCoBJE/Pn4ccqHnSdUz1QfRvyY+ljADPvL9Y+8yCZrgV1TXz2JIrf/ IMzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rp1byrR7s3fkY4PjvvNsxVQi+oUszqEO+iMKVPDKdIk=; b=qASJ/wxqYtKocpJJEdqNQashnszyMySFJ0raA6cLJgwNR6vtCSOby60TY3E0U15IpR gLopQgGwrpwf/MqXjwqaup8fgYlpS64lVYhqV9Z+kWF8p9tKLwLC66aE+Zu2zCga1K1R u3xL3DeiuzdhzRi2bTRnrBEHCIRbcLW4vmsGWKnGx8t9LGn+fGXNZuJ3QWembgR/wLJg Ta6GOev2mCSCRgAkVyjX1WFRKcHR9HCE2S77ZQhe/AGQJHIjMcLDnNzCh+JW/urypFNG nas56xj+T+5w/EZVEZVje3nTl+8iWLLujApUlvKkOjmFscHYbwtZb/+G99+jrxlTlAjy cSaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=vN5Ed2uj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob2-20020a17090b390200b0022bb71938casi15030034pjb.50.2023.04.04.02.13.10; Tue, 04 Apr 2023 02:13:22 -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=vN5Ed2uj; 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 S234307AbjDDJIK (ORCPT + 99 others); Tue, 4 Apr 2023 05:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234275AbjDDJH6 (ORCPT ); Tue, 4 Apr 2023 05:07:58 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34001211B; Tue, 4 Apr 2023 02:07:40 -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 DD1F0204A6; Tue, 4 Apr 2023 09:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1680599258; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rp1byrR7s3fkY4PjvvNsxVQi+oUszqEO+iMKVPDKdIk=; b=vN5Ed2ujeDnWAjclyPn/8Eom7F+TJM78c7KtgnToFgnIAyfD/Aqnrk2NbDUMKyifUwUr3n 1Z0YS0qvLrdWg5nhZro2NuiBBACFME+zaWDHYJj5dEu53In+Z1Nw3swHJXTXv6oHw5ffoW rhiePGvP9y7/aefjEMuTGxZqtjWmjIc= 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 A5BCA1391A; Tue, 4 Apr 2023 09:07:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 62d7J9roK2TfLAAAMHmgww (envelope-from ); Tue, 04 Apr 2023 09:07:38 +0000 Date: Tue, 4 Apr 2023 11:07:37 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Waiman Long Cc: Tejun Heo , Zefan Li , Johannes Weiner , Christian Brauner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Juri Lelli , Dietmar Eggemann , gscrivan@redhat.com Subject: Re: [PATCH 3/3] cgroup/cpuset: Allow only one active attach operation per cpuset Message-ID: <20230404090737.3g3uxga52bojgdu5@blackpad> References: <20230331145045.2251683-1-longman@redhat.com> <20230331145045.2251683-4-longman@redhat.com> <20230403164736.lpjdpzxxnjlpxrqv@blackpad> <24b67530-62ce-4f9c-7b74-d41d2ccc710e@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ilogas4aec7si4wz" Content-Disposition: inline In-Reply-To: <24b67530-62ce-4f9c-7b74-d41d2ccc710e@redhat.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 --ilogas4aec7si4wz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi. On Mon, Apr 03, 2023 at 01:41:33PM -0400, Waiman Long wrote: > This patch is actually not related to the CLONE_INTO_GROUP problem in patch > 1. It is a generic problem when multiple users are moving threads into > cgroup.threads of the same or different cpusets simultaneously. I meant this: __cgroup_procs_write cgroup_kn_lock_live mutex_lock(&cgroup_mutex) and (more succintly) cgroup_update_dfl_csses lockdep_assert_held(&cgroup_mutex) Even the threaded migrations should be synchronized here. Can you please explain in more detail what's the problematic case? > I don't believe this patch has a dependency on patch 1. (I meant the opposite, patch 1 would depend in this 3/3. But maybe this one isn't need.) Michal --ilogas4aec7si4wz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCZCvoyAAKCRAkDQmsBEOq uWSoAP41lQ11CXnVKE2G4jMF7tULituGE65Jni9yu8QGOPvQEAD/cthzkgC2745v rrgDBOyUhh+6zjNzCq6nigOTN7j16w8= =z1SR -----END PGP SIGNATURE----- --ilogas4aec7si4wz--