Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4500206ybp; Mon, 7 Oct 2019 09:20:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKsPdmk92sZAmw7cyrKl2wEfeehXhwnyhFZTEIZoHoajx5bjHwJ6P4JNlHVRwbZ2T627wb X-Received: by 2002:a50:c351:: with SMTP id q17mr29539336edb.123.1570465216182; Mon, 07 Oct 2019 09:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570465216; cv=none; d=google.com; s=arc-20160816; b=KhNtkbZf5/wkSn9C0yTo1LluEa6TryvERiUz1IjbMoFaKmCbj+vPFs+JKNVgcBAUUh MTMIgPZoMUb7GREq/7tyaNJeW5qyyknJDQVIrn3gCRKTGlIeAj9MI9jeyVmFBjFFOfkJ mThB9GgSsbZ/opYeyRBvEBzgS11BmEmt3x7AH5pKWop9U9Uo6CWrVt3AW6Cx5LTElN1m hpl27HXtighdy8+A/yCS3uQDHQCDv46ymsR/CM3VCRS3euYBxnqGmUdte3DGNQzo01LK Ch+4Mu0i6/WuTkQklANP/QO346cIYbVqr8PQpcRDnJPgI8k4A25RMd0ONbR68p1gAXwf O9GA== 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=geQNKjizk4PQsQP3h44yir9FueQiLv0r1ht+1Jv4S0U=; b=sIFuqWlb6n7WENgdmSQBgySv0IsKq42WI8Y42SlaD9XnNS6aJUsgEsbp+0XmoKibwZ QifR6lcv7OjCElF8OU/WMKkPjer/va1f4GsmtX8m4TIoiSJjsFNP8D+FHArkuwrP8xnT 9PKWqu2OyetwViSHQ+82JKO2PCaOfUZ5t6/b53CsZAd7yyvf5yPzYGZ36A2dkNILr+/g hq8Tt67uqqMYtrh2tQujjBoGSEfMYACMmQ2yqQWLn80Y2Lj0K9DbP4gS0ZU/Szii1eId wZwjz40sU9YBWuCAkbGix+6xDD4XtQgt/x7qKbwvK73eJTJBJeMnATS7YnrDWGBEzyld Jp7Q== 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 m22si7050662ejr.368.2019.10.07.09.19.50; Mon, 07 Oct 2019 09:20:16 -0700 (PDT) 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 S1728139AbfJGQTc (ORCPT + 99 others); Mon, 7 Oct 2019 12:19:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:45452 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727801AbfJGQTb (ORCPT ); Mon, 7 Oct 2019 12:19:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 069EDAD3E; Mon, 7 Oct 2019 16:19:29 +0000 (UTC) Date: Mon, 7 Oct 2019 18:19:26 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Roman Gushchin Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, tj@kernel.org, Jan Kara Subject: Re: [PATCH] cgroup, blkcg: prevent dirty inodes to pin dying memory cgroups Message-ID: <20191007161925.GA23403@blackbody.suse.cz> References: <20191004221104.646711-1-guro@fb.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline In-Reply-To: <20191004221104.646711-1-guro@fb.com> 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 --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 04, 2019 at 03:11:04PM -0700, Roman Gushchin wrote: > An inode which is getting dirty for the first time is associated > with the wb structure (look at __inode_attach_wb()). It can later > be switched to another wb under some conditions (e.g. some other > cgroup is writing a lot of data to the same inode), but generally > stays associated up to the end of life of the inode structure. What about dissociating the wb structure from the charged cgroup after the particular writeback finished? (I understand from your description that wb structure outlives the dirtier and is kept due to other inode (read) users, not sure if that's correct assumption.) Michal --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl2bZYYACgkQia1+riC5 qSgwXw/+Jt1YK9cwMYaKpGSYTvnZ7Gfx4QQ08b3nHeqwiAdaYqDv4KpZHcEBL4bY XRyuxPlOHGhhAaZm+OvpR1Daix3FGb1LIaHwnagJ/6Uwu8lOoJXaKMmOh/GNLtgS 7jtLPWL/S9mSvvUlzNCzTZG0AFgvS2VdUYVb7oDRaDZs8eIffRulCIu5B2aDwvKo 2WWM8TAP2/ftiK8RUxOitGAi2upzk72dD2bg+7H0ffQL0wvCTCNEWAw5LUCL4cJF +tpJPWkMAObCgGVfUNUx0KQaba0raoX1XM6W+eWWQVEzdTaR04MT7Y40qodSZDM1 ub7r6RGNAGitKQgoGKH5EE2rLhMcn4NP3qpNzkKAbaM+mV4+XcJEq6SnvwJwNtLW xQFKWKQZqV049kLct3O+c1JpKGuZCKkXrc1+iYw4cIXwkfScyKQuPTBvavGZNpyJ g+VDOsHUFI7FwYUPfL+HdtMTVdR2kTiFF3COLzhlSdH7L9DcFr4Usa8Q4BHZqL6G d84ZbQmBAztcQYO3Br547otZ8zdEEeBkkbyzhYzEc7lpQxI6CYTavIwR05EnHecI gzulHK2aLikIpgokf3k4QcF7BbVblqyIdPIES3ZDR0MWSiWE+boHXYdO8JhK1AAw GXPuJQH7ibuUCHPu3+iZ/jlubKFvs4h4IBKIpqgbV17iKvpdwJQ= =PXQV -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--