From nobody Fri Jul 24 21:53:10 2026 Received: from mailgw1.hygon.cn (unknown [101.204.27.37]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 449A13DBD44 for ; Thu, 23 Jul 2026 07:36:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.204.27.37 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784792202; cv=none; b=uPrqH2nve1xJtIzVu4qRz7xwsviAEPE1VpknjPC+PdwG88klERTSiujz0xn2ML7Qrkej7KpbS+r3HVQhP+JmgOo3wnrKRe9rvAjcFW2U18GStiCsZLhsZs3HdudLwQEv/6GN1LRzlkKsNCmNv2jlX3rVWrubTCjN29Bz+B1lYZA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784792202; c=relaxed/simple; bh=az9ajxOdXSonkEUlzws1EG873lDuUQSeJfNFI9hcHs0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TKwlTEkZUrv6ekPlcheNtKd9lgT25b/YsAE5G/PYtADOVUzwmQNtgSK5Pv3JZiJpN69bt6lngfMHlh69iUWkkiFYb/NGiu7epo0a+gsBhBsPRoLZIM4I4EFDsZnqe9NllgFijtCQXze7Po4heNI9+vk4Y0TmsBoNnlQOfPdhp5c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hygon.cn; spf=pass smtp.mailfrom=hygon.cn; arc=none smtp.client-ip=101.204.27.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hygon.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hygon.cn Received: from maildlp2.hygon.cn (unknown [127.0.0.1]) by mailgw1.hygon.cn (Postfix) with ESMTP id 4h5NGW2M2WzVbqk; Thu, 23 Jul 2026 15:36:19 +0800 (CST) Received: from maildlp2.hygon.cn (unknown [172.23.18.61]) by mailgw1.hygon.cn (Postfix) with ESMTP id 4h5NGS6MBJzVbqg; Thu, 23 Jul 2026 15:36:16 +0800 (CST) Received: from cncheex04.Hygon.cn (unknown [172.23.18.114]) by maildlp2.hygon.cn (Postfix) with ESMTPS id ACD713237CFE; Thu, 23 Jul 2026 15:33:37 +0800 (CST) Received: from hsj-2U-Workstation.hygon.cn (172.19.24.226) by cncheex04.Hygon.cn (172.23.18.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Thu, 23 Jul 2026 15:36:16 +0800 From: Huang Shijie To: , , , CC: , , , , , , , , , , Huang Shijie Subject: [PATCH] sched/fair: remove the wrong check is_vm_hugetlb_page Date: Thu, 23 Jul 2026 15:34:49 +0800 Message-ID: <20260723073449.1945687-1-huangsj@hygon.cn> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: cncheex06.Hygon.cn (172.23.18.116) To cncheex04.Hygon.cn (172.23.18.114) Content-Type: text/plain; charset="utf-8" In vma_migratable(), we do strictly check with hugetlb mapping: hugepage_migration_supported() When vma_migratable() returns true, it means the hugetlb mapping passes the hugepage_migration_supported(). So we should not skip this hugetlb mapping. Remove the wrong is_vm_hugetlb_page() check in task_numa_work(). Signed-off-by: Huang Shijie --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d78467ec6ee1..0582e0cfba36 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4167,7 +4167,7 @@ static void task_numa_work(struct callback_head *work) =20 for (; vma; vma =3D vma_next(&vmi)) { if (!vma_migratable(vma) || !vma_policy_mof(vma) || - is_vm_hugetlb_page(vma) || (vma->vm_flags & VM_MIXEDMAP)) { + (vma->vm_flags & VM_MIXEDMAP)) { trace_sched_skip_vma_numa(mm, vma, NUMAB_SKIP_UNSUITABLE); continue; } --=20 2.53.0