Skip to content

ipvs: Fix incorrect use of HK_TYPE_KTHREAD housekeeping cpumask

Waiman Long lkml lvs-devel netdev netfilter-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 9 repliesIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Rebased on top of linux-next

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched/isolation: Make HK_TYPE_KTHREAD an alias of HK_TYPE_DOMAINinclude/linux/sched/isolation.h+5 -11 reply
2/2ipvs: Guard access of HK_TYPE_KTHREAD cpumask with RCUinclude/net/ip_vs.h net/netfilter/ipvs/ip_vs_ctl.c+24 -92 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJulian Anastasov
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH-next v2 0/2] ipvs: Fix incorrect use of HK_TYPE_KTHREAD housekeeping cpumask

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(-)
Signature · 1 line
2.53.0