From: Tejun Heo Subject: Re: [PATCH v5 2/5] memcg: flush stats non-atomically in mem_cgroup_wb_stats() Date: Fri, 5 May 2023 05:19:11 -1000 Message-ID: References: <20230421174020.2994750-1-yosryahmed@google.com> <20230421174020.2994750-3-yosryahmed@google.com> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683299953; x=1685891953; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=QrpziiuRPJpNoKcFlKlNDYP3hr3GKLDf970mOGtKvuc=; b=Fj4FzNjR0Oz19A6ZjISxtRCIB+gQ3mormqowoEF1ln4EAGyvrsBXyRSKbqhyQLC+in o5fjKNvQ/yN0VkIUe2FBxZQFo8CuBxoJ2BHDLSjYh8+HdnZ3QVP+E3dS2Plzshy/p0pl Hf+Ipbvxtcy7Hi/3cT8d8Gb8J4VkAhSsEMdiy5ZKUcaPh932ZSd20eO3fYebZugEA49X mUUklW5aR3Rdjne/IP0kOlzyLqAlnitsZ0Nl/BTITfGcIQAdz5oicdNCa7j+DyuEkA1C Vd0a06+ACDVmjHz4Tb9Av8qWUmDjShH/SvaPwFsAA9tTqizN1m3Qn5TBxTXirG2Ivak4 dJgQ== Sender: Tejun Heo Content-Disposition: inline In-Reply-To: <20230421174020.2994750-3-yosryahmed-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Yosry Ahmed Cc: Alexander Viro , Christian Brauner , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , Jan Kara , Jens Axboe , Michal =?iso-8859-1?Q?Koutn=FD?= , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org On Fri, Apr 21, 2023 at 05:40:17PM +0000, Yosry Ahmed wrote: > The previous patch moved the wb_over_bg_thresh()->mem_cgroup_wb_stats() > code path in wb_writeback() outside the lock section. We no longer need > to flush the stats atomically. Flush the stats non-atomically. >=20 > Signed-off-by: Yosry Ahmed > Reviewed-by: Michal Koutn=FD > Acked-by: Shakeel Butt Acked-by: Tejun Heo Thanks. --=20 tejun