Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3884448ybl; Mon, 3 Feb 2020 08:19:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwky0belD9ogjbsp4fUCgRty8KVBXq/lP7WOKcBXqcbwWwbDCb8CU1sXAQZGHpBaUTiSNAs X-Received: by 2002:a9d:6e02:: with SMTP id e2mr18532834otr.194.1580746795218; Mon, 03 Feb 2020 08:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580746795; cv=none; d=google.com; s=arc-20160816; b=gYU84Ap2WaofnJUQZUr0YAnth8zM9VWf1nCLGv7kCdu/N3PKsj1EthoOab5MXk3Btx 1A+1v1sbrO8bsVnm/uL1U5QvIZzcz3kaDAbgZpb6NeQN/VvICD58GjHBCGCuKkGd6LbO zTHjs7VlLKrroEUc//ngGqffEYEKpDMRUiPPis0kZrLowXs27ocpQ86VNqXyWujOLh4v 7Kwe6jAVRYpBG1/b0bgCyHgAwCDSpB7KSVw5BQXkRpuedWnj0q/2/Nce+ZC+xtA8b9AF 9K3G2FaXYvE3mcufUO4EM9yYoGiAz+djjhmw72bU9FabOxiynpsdUl6iVv3dqKSxegxh 0t6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=damskcjpKYUbwJ/mxlBZEghES5QBQx9dXzk+WyW9XNY=; b=vtnpLr7Da1dpQHDg90kkqrmaPP16vOig7P1SZB3hL2xEdMcHx8xN0zs8aa0o+5Z5uA A64RXCy08f3+cNfaiMaT3Ep3Q8BphQazR9kdn9THdS9+C68Z5oVZrXRVr11yhjuX/wOt gVVHA6s9uptxBLdE8glyWMVuDKtBNUTslrJK3gUSFB7ohtOSOx9/ag564sW08mOiBkBU 0VUdFKQCzmEmLQvl5fFwwzfvM5eks4bawA6R+dLmX/eFTL4pghEGPz0r90msxGnPa5G5 13GBO6ba4P/ddSNfGSj0hje0n/6hRU9lrvmc8zxqdQ0HgZZjpjMF7+3Spdgs0CNeWrXw IHxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si9575831otq.222.2020.02.03.08.19.41; Mon, 03 Feb 2020 08:19:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728425AbgBCOcd (ORCPT + 99 others); Mon, 3 Feb 2020 09:32:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:46236 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727649AbgBCOcc (ORCPT ); Mon, 3 Feb 2020 09:32:32 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 66D0AB213; Mon, 3 Feb 2020 14:32:30 +0000 (UTC) Date: Mon, 3 Feb 2020 15:32:28 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Christian Brauner Cc: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Tejun Heo , Oleg Nesterov , Ingo Molnar , Johannes Weiner , Li Zefan , Peter Zijlstra , cgroups@vger.kernel.org Subject: Re: [PATCH v5 5/6] clone3: allow spawning processes into cgroups Message-ID: <20200203143228.GC13360@blackbody.suse.cz> References: <20200121154844.411-1-christian.brauner@ubuntu.com> <20200121154844.411-6-christian.brauner@ubuntu.com> <20200129132719.GD11384@blackbody.suse.cz> <20200202093702.cdlyytywty7hk3rn@wittgenstein> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iFRdW5/EC4oqxDHL" Content-Disposition: inline In-Reply-To: <20200202093702.cdlyytywty7hk3rn@wittgenstein> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --iFRdW5/EC4oqxDHL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Feb 02, 2020 at 10:37:02AM +0100, Christian Brauner wrote: > cgroup_post_fork() is called past the point of no return for fork and > cgroup_css_set_put_fork() is explicitly documented as only being > callable before forks point of no return: I missed this and somehow incorrectly assumed it's called at the end of fork too. I find the css_set refcounting correct now. BTW any reason why not to utilize cgroup_css_set_put_fork() for the regular cleanup in cgroup_post_fork() too? Thanks, Michal --iFRdW5/EC4oqxDHL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl44LvcACgkQia1+riC5 qSih0g//dEMA5UJIbc+0y7DXE9E+SiqXkYhkYbIoloeRHoNZZnwezyhercYrcOya 1yJzJ0H9zz9i3gQ3A5VE/Aqp9/gqjRakmtpLg3HNFO7gEFv3l9Mn5YwP0HEWIa3v BOCCmdKlCFjMl41ZqsHjqnFYpNosVV/NP946BsTdN3zmDpRHLZLMTPz06CGrfvoB vxE1Rbwn155YhwSmTQc2jBEhswXCs1LR7Y992a4aTOcvtTDGJafX3B4hbEPjQsRs aIjE1nbF/WB0giyfyw6UjBt+VI/1DYh9+wHNrbctlCufSi+r+ideubGqH027vgnb UNynOqSoBOcTdbI7O7ON69Ir7eB9itrsEGp6H+SqBMqPrxt8ZaVTjA6EFKrX99ST ypg27IRkSSufIk9JMnIBCMOAXmU2SxlCJk5imkyS8ghOoZcI9VlnS4jDh5IHlSm+ 25L9thnO+QjtfGXYQhtddSPBYTa5tdN23/SigWvuvumWBOMEIpBqxndH4gv658Lz vo4OnmpAWuT400Tt/YZF1HX0gCDWLPlYz+nA9VXn7aMyzMPZdIVqjFAuY35OXZyF 8mwQdWPdyKeOXjfbQoiSqbTsR/mEDGUCbbf5v+bxI2vvJsBz+otzUGT8MKqPEC6c lFvB9fnlI7rZ1x4lCoy+fqtIJfoLvuZq9pSx38U/O20H3siWH08= =Y692 -----END PGP SIGNATURE----- --iFRdW5/EC4oqxDHL--