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 3C477425CD6 for ; Tue, 31 Mar 2026 16:50:50 +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=1774975851; cv=none; b=bBGCzxpn2UIOK8EPD6EOdcrLiRCyKmwNC8iMsVqG7F57ptqqPYTTOD8J/SMcZrXD513+XrWi6XZRSG8roq3aPhb2MDdlgiwP486eE4kO7UkLfl+8yE9luUBdT/sOOHEK48b66Eswtm2I34No5lURL72Rus1LafLdb2E6zLWbfQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975851; c=relaxed/simple; bh=uaJTNDpTTNCJjLb0T0uqnNwZs8FWXt7CgFTzh7mNsPQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GPuJmVenPGS9HwVh2J2pMMvCPLfcBkTc5i9f+xGP11YSHDDJbNUv671TXlv/BE22xsUxlKa4uAnLZuzf0HZiEJJnCa1ULebVKzBYXRO4StLh1u7OHZ9AomWwbUahBwrtuPtWrmvCrOX1pMSmL7QXLyoA64gVEybR88fTk0kcVIs= 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=P80SBJGk; 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="P80SBJGk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774975849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MbsngGMGgFXF4FxRKphAmfS3uQOFO0oUmRUWkib1ynE=; b=P80SBJGkCPaOLT2woFIIB4heO9svPrKd5lovsovDlnJtTMdqB0Pr798F727FFa487S3pP9 zmfazY2ojYVryPmE7zGPUNJFOB/hvwPh1Z4kb9tCcV22oi1Wm1xKgfcWbi4HCCbRN8WDzC zB3pvl48djPXRMQ8uzYfEkPBnAyUVoI= Received: from mx-prod-mc-08.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-399-Kn7xVzZcMV6J3_O8pKezog-1; Tue, 31 Mar 2026 12:50:42 -0400 X-MC-Unique: Kn7xVzZcMV6J3_O8pKezog-1 X-Mimecast-MFC-AGG-ID: Kn7xVzZcMV6J3_O8pKezog_1774975837 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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 22AE018002C8; Tue, 31 Mar 2026 16:50:36 +0000 (UTC) Received: from llong-thinkpadp16vgen1.westford.csb (unknown [10.22.80.26]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 99205180036E; Tue, 31 Mar 2026 16:50:31 +0000 (UTC) From: Waiman Long To: Simon Horman , Julian Anastasov , "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Pablo Neira Ayuso , Florian Westphal , Phil Sutter , Frederic Weisbecker , Chen Ridong , Phil Auld Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, sheviks , Waiman Long Subject: [PATCH-next v2 0/2] ipvs: Fix incorrect use of HK_TYPE_KTHREAD housekeeping cpumask Date: Tue, 31 Mar 2026 12:50:13 -0400 Message-ID: <20260331165015.2777765-1-longman@redhat.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 v2: - Rebased on top of linux-next Since commit 041ee6f3727a ("kthread: Rely on HK_TYPE_DOMAIN for preferred affinity management"), the HK_TYPE_KTHREAD housekeeping cpumask may no longer be correct in showing the actual CPU affinity of kthreads that have no predefined CPU affinity. As the ipvs networking code is still using HK_TYPE_KTHREAD, we need to make HK_TYPE_KTHREAD reflect the reality. This patch series makes HK_TYPE_KTHREAD an alias of HK_TYPE_DOMAIN and uses RCU to protect access to the HK_TYPE_KTHREAD housekeeping cpumask. Waiman Long (2): sched/isolation: Make HK_TYPE_KTHREAD an alias of HK_TYPE_DOMAIN ipvs: Guard access of HK_TYPE_KTHREAD cpumask with RCU include/linux/sched/isolation.h | 6 +++++- include/net/ip_vs.h | 20 ++++++++++++++++---- net/netfilter/ipvs/ip_vs_ctl.c | 13 ++++++++----- 3 files changed, 29 insertions(+), 10 deletions(-) -- 2.53.0