From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62F5D3DEAD6 for ; Mon, 21 Sep 2026 19:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790020733; cv=none; b=GHHXUxY4fWe6pxr8njms5E6/7wS39bB21eZgJHNZB0hJ+6nx80ny92UscQzlVUcWUaJ8uA9X1uV92oiq2kPysspd4ILOPQHHNj84L4de3Qn/11poaIgM/OvmGKhzeaN1Tfd2VEwP+3TUpNHWeGoD2L0a0b257TiWWwCNOkYALKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790020733; c=relaxed/simple; bh=z48FpH7PIx2OiXiR4P5GOSs7qt1bO2Vg16w8mN6lx1o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qJLPu67CYy9rrcJEUG9WsG71jxO486bMZXRPx69FZjsmZh9SRWKYc0fuNttHdIW1D3O2sNh2boUiLn2SffE0gnyW3MFHh18ucbNyODLR1ATJclpfnqhxjOn8zK/ay2e0vKVv6tF3jCSR1/IlBl19R2jjUun51vkhfotmzflcsPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WrsKjSuz; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WrsKjSuz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790020730; h=from:from:reply-to:subject:subject: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=7PQp78DBLyCecA5Hv0HqsD2IBBaq/qhrBbKSaa4Pw6A=; b=WrsKjSuzLKoh3qbzWkVkjz+fRBx/QX2iAvV2yWtgAbzIrNZlhNZQEen37kRAjacEDOZ1D4 W3rZwSf0+9qOvaoS8k3Yb2IsujK+WEhOmjvpE9bMkuYyveAh7zIByg1klX0zXb5ODn/ifg eaoSM72kIKz6FuZ2elRgYGSJCLy8xSQ= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-101-uhJugSIvPImDr0Dcg1tQkg-1; Mon, 21 Sep 2026 15:58:47 -0400 X-MC-Unique: uhJugSIvPImDr0Dcg1tQkg-1 X-Mimecast-MFC-AGG-ID: uhJugSIvPImDr0Dcg1tQkg_1790020726 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 970C71829E21; Mon, 21 Sep 2026 19:58:45 +0000 (UTC) Received: from fedora (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id B445F180036E; Mon, 21 Sep 2026 19:58:26 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 21 Sep 2026 21:58:45 +0200 (CEST) Date: Mon, 21 Sep 2026 21:58:25 +0200 From: Oleg Nesterov To: Ye Liu Cc: Michal Hocko , Andrew Morton , Ye Liu , SJ Park , Gregory Price , Lorenzo Stoakes , peterz@infradead.org, paulmck@kernel.org, mingo@redhat.com, rostedt@goodmis.org, jpoimboe@kernel.org, mic@digikod.net, tglx@kernel.org, david@kernel.org, linmiaohe@huawei.com, nao.horiguchi@gmail.com, rafael@kernel.org, gnoack3000@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rcu@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, rientjes@google.com, shakeel.butt@linux.dev, xu.xin16@zte.com.cn, chengming.zhou@linux.dev, will@kernel.org, boqun@kernel.org, frederic@kernel.org, neeraj.upadhyay@kernel.org, joelagnelf@nvidia.com, josh@joshtriplett.org, urezki@gmail.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, tony.luck@intel.com, reinette.chatre@intel.com, x86@kernel.org, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, pavel@kernel.org, lance.yang@linux.dev, mhiramat@kernel.org, pmladek@suse.com, longman@redhat.com, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, qiang.zhang@linux.dev, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, kprateek.nayak@amd.com, mark.rutland@arm.com, Dave.Martin@arm.com, james.morse@arm.com, babu.moger@amd.com Subject: Re: [PATCH v4 02/15] mm/oom_kill: convert process/thread iterators to for_each_*_rculock Message-ID: References: <20260921092101.89285-1-ye.liu@linux.dev> <20260921092101.89285-3-ye.liu@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260921092101.89285-3-ye.liu@linux.dev> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 On 09/21, Ye Liu wrote: > > From: Ye Liu > > Replace the manual rcu_read_lock()/rcu_read_unlock() pairs wrapping > for_each_process()/for_each_thread() loops with for_each_process_rculock() > and for_each_thread_rculock(), which scope the RCU read lock to the > loop body via scoped_guard(rcu). > > No functional change. > > Signed-off-by: Ye Liu > Acked-by: Michal Hocko > Reviewed-by: SJ Park > Reviewed-by: Gregory Price (Meta) > Reviewed-by: Lorenzo Stoakes (ARM) > --- > mm/oom_kill.c | 20 +++++--------------- > 1 file changed, 5 insertions(+), 15 deletions(-) Reviewed-by: Oleg Nesterov