From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65FCC2494FE for ; Wed, 17 Dec 2025 21:13:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766006029; cv=none; b=ibLXzfl8VYdyHIQq2VG1uB0wTLHnTsl42seBT0syLr70VXlDuh/RnnP1T5MrTd37/yN+lViIPFG2Bt2GLf1ygLNO2GoB+wVacOfcf+po6FjSzQtgEKFu9H+wlWuV2r6V1vHgDM9Mu8g10sBCL6ussIz29o70lAy2OlgnpYmtUKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766006029; c=relaxed/simple; bh=2gTEpwwZsnFbkTdUuykdfyFFKchQrX707OS2a5hGbgY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RYYy9UVVjayIECRnZZBAu/7WjnLT3A1SOBOQKkpxcJR3b1BInAeD8+FGISvwiGnxY1LvHRU9q80zQg3iAbqKuHzeIayfjHaeGyWfr6mydFPAmw5mIH3uv1wfU1V1WaO7L2va0g4gaMvI1KczK3FYDOLmZZix6Q5wyimzswYVCF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org; spf=pass smtp.mailfrom=cmpxchg.org; dkim=pass (2048-bit key) header.d=cmpxchg.org header.i=@cmpxchg.org header.b=VxJVgkxL; arc=none smtp.client-ip=209.85.222.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmpxchg.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cmpxchg.org header.i=@cmpxchg.org header.b="VxJVgkxL" Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-8ba3ffd54dbso861853585a.1 for ; Wed, 17 Dec 2025 13:13:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg.org; s=google; t=1766006026; x=1766610826; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RtGb0r/P6zEZ8trF9hUpub5gtg16/YJkxY5mix/dDUM=; b=VxJVgkxLxOWW3G5FrWPkgkKxyg71F7+5deRnJ+eI7htFdVBlLt0Ixx6BGSWkckqbdv kf7HnvTZalo1CfJPCEDa6q00F7GJTHD+qFBAM+OOvDUZX2DmakyfBDfT+aTbNUN1C07U y3waxGnSr3uOHRKIxWABXokUg5z1sTkHs1d1PxkJwg0gl3CNotoTFsRd/DaVY1WQA3FG YYLfAhTWuhowSYP2OwSBHh61LjQRPtiOLZHaFq6/EW38yGb1HzStsx4azknZzm5ZnofQ A+umecUSyp9v3iGpu2YqXLEFG1yG93RhTutjU1WY8kUS8FlaHXNDEhIBwzERPFAMnn1H lTTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766006026; x=1766610826; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RtGb0r/P6zEZ8trF9hUpub5gtg16/YJkxY5mix/dDUM=; b=xGQSIJLEyU3a3EMVr0L74ruyfKjTvDiNTrorddv0Udt/fO4PEqlR8E6hv+BBZz7QUe g/w/ZyIuzR2bfVQ6EZ42royhuGoPqlK6RdKfzs5lJUrRf/FsvxXHhxHo7I8RELZ0nKS8 r/IEbLzbpylRmOZ9c70QzIGllUkVk4zzOVtCmr+ZFfY30ZcOqeCJV1buOWT+9ln3YbgG xsmMN6eu7aVIu3lX3r/joMth5+0bxnr8q5gXi36XE0UFq13fOMW5lhLGV2jvyQmzqqDA TJfY2N8lzP5DGboDQ9+6rgpLtu9JP2Jld+sWCmRdnBlSARPEIkRmu+j01bA/AMPEZmZ2 HCtw== X-Forwarded-Encrypted: i=1; AJvYcCWvsowqu2L4ehLV01VhQdKypayGQF+AmV1nPCf7xY5hFSnGQAVRzv20Vl6+6X5zMliwVCgyEOei+wnG2Tc=@vger.kernel.org X-Gm-Message-State: AOJu0YzSpnkuUHS9TrGSTFkNfIPC3wg0VfFXOgRC1H6AQODGdkR7V6No WKlgm2WCGYQHiefW3Fg52krr/PCl9Lg2/91ij+2OvYSoV6a1LQKfMa10e+zahtkqJqw= X-Gm-Gg: AY/fxX5e7F1/p6r5dls/eB+fW2p0tWOIvyw183R8FrMQ3SsZBjU9MGG07gVoLCMFhot D+XFDITzZBVqFtdBvgGe9VCO5SIWDmLnQyn5XbHTt9No3W2PsPT3bZ18sfkI64GD33BvFV7rU8i mL3rlKuc9xnikipYL35y/MkHf258oOIkaeEbuJrJz4sMcZyqU8QmYP0CgdYfzwzQdDFnhTYMBQm 3eibKX1TVTICIxcF8ezYyf98YmhNi/xQhhx6nK5NmiXKdzsWRl8oSQoCBOFPVSn0QWHu4y65BW5 K6FjWhcqd8A593vfcifKzBUGgWoxilMKlJOXmtKhMj+4/6EcbbLfl48nHwyloLPTSWl/VT8upBP kr7qPgPvVddyT14w5233xyu1l8JRO/FVyFZ8sQRneohpwyeOu3vlfNNnssvOgHUdeoQRPlREV9B di5VoKt4sazw== X-Google-Smtp-Source: AGHT+IET4L1o4h7gpr31cJq/0Bv9h1gq6eO5+hWYnncruBpcH76SMVyfZw1AptOE09FasXWhGUSOKg== X-Received: by 2002:a05:620a:4116:b0:8b2:e402:20b4 with SMTP id af79cd13be357-8bb398d914bmr2946405485a.10.1766006026195; Wed, 17 Dec 2025 13:13:46 -0800 (PST) Received: from localhost ([2603:7000:c01:2716:929a:4aff:fe16:c778]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8beeb6e987asm28540285a.22.2025.12.17.13.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Dec 2025 13:13:45 -0800 (PST) Date: Wed, 17 Dec 2025 16:13:44 -0500 From: Johannes Weiner To: Qi Zheng Cc: hughd@google.com, mhocko@suse.com, roman.gushchin@linux.dev, shakeel.butt@linux.dev, muchun.song@linux.dev, david@kernel.org, lorenzo.stoakes@oracle.com, ziy@nvidia.com, harry.yoo@oracle.com, imran.f.khan@oracle.com, kamalesh.babulal@oracle.com, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, chenridong@huaweicloud.com, mkoutny@suse.com, akpm@linux-foundation.org, hamzamahfooz@linux.microsoft.com, apais@linux.microsoft.com, lance.yang@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Qi Zheng Subject: Re: [PATCH v2 04/28] mm: vmscan: prepare for the refactoring the move_folios_to_lru() Message-ID: References: <4a7ca63e3d872b7e4d117cf4e2696486772facb6.1765956025.git.zhengqi.arch@bytedance.com> 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: <4a7ca63e3d872b7e4d117cf4e2696486772facb6.1765956025.git.zhengqi.arch@bytedance.com> On Wed, Dec 17, 2025 at 03:27:28PM +0800, Qi Zheng wrote: > From: Qi Zheng > > After refactoring the move_folios_to_lru(), its caller no longer needs to > hold the lruvec lock, the disabling IRQ is only for __count_vm_events() > and __mod_node_page_state(). > > On the PREEMPT_RT kernel, the local_irq_disable() cannot be used. To > avoid using local_irq_disable() and reduce the critical section of > disabling IRQ, make all callers of move_folios_to_lru() use IRQ-safed > count_vm_events() and mod_node_page_state(). > > Signed-off-by: Qi Zheng Acked-by: Johannes Weiner