Linux filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] mm: replace PF_KCOMPACTD/PF_KSWAPD with kthread_func()
@ 2026-09-02 13:16 Kefeng Wang
  2026-09-02 13:16 ` [PATCH 1/4] xfs: remove dead kswapd flag inheritance from btree split worker Kefeng Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 23+ messages in thread
From: Kefeng Wang @ 2026-09-02 13:16 UTC (permalink / raw)
  To: brauner, djwong, cem, akpm, vbabka, surenb, mhocko,
	brendan.jackman, hannes, ziy, david, qi.zheng, shakeel.butt, ljs
  Cc: linux-xfs, linux-fsdevel, linux-mm, Kefeng Wang

The task_struct->flags field is a limited 32-bit resource. Two flag bits,
PF_KCOMPACTD and PF_KSWAPD, are used to identify whether a kernel thread
is kcompactd or kswapd. Converting these to use kthread_func() frees up
two valuable flag bits for future use.

Kefeng Wang (4):
  xfs: remove dead kswapd flag inheritance from btree split worker
  iomap: simplify writepages reclaim guard
  mm: replace PF_KSWAPD flag with kthread_func() check
  mm: replace PF_KCOMPACTD flag with kthread_func() check

 fs/iomap/buffered-io.c                   |  3 +--
 fs/xfs/libxfs/xfs_btree.c                | 18 +-----------------
 fs/xfs/xfs_platform.h                    |  4 ----
 include/linux/compaction.h               | 11 ++++++-----
 include/linux/sched.h                    |  4 ++--
 include/linux/swap.h                     |  7 +------
 mm/compaction.c                          |  9 ++++++---
 mm/vmscan.c                              | 10 ++++++++--
 tools/sched_ext/include/scx/common.bpf.h |  2 --
 9 files changed, 25 insertions(+), 43 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2026-09-04 11:57 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-02 13:16 [PATCH 0/4] mm: replace PF_KCOMPACTD/PF_KSWAPD with kthread_func() Kefeng Wang
2026-09-02 13:16 ` [PATCH 1/4] xfs: remove dead kswapd flag inheritance from btree split worker Kefeng Wang
2026-09-02 14:32   ` Christoph Hellwig
2026-09-02 15:33   ` Shakeel Butt
2026-09-02 13:16 ` [PATCH 2/4] iomap: simplify writepages reclaim guard Kefeng Wang
2026-09-02 14:32   ` Christoph Hellwig
2026-09-03 13:46     ` Kefeng Wang
2026-09-02 15:34   ` Shakeel Butt
2026-09-02 13:16 ` [PATCH 3/4] mm: replace PF_KSWAPD flag with kthread_func() check Kefeng Wang
2026-09-02 15:36   ` Shakeel Butt
2026-09-02 16:35   ` Vlastimil Babka (SUSE)
2026-09-02 16:39   ` Zi Yan
2026-09-02 13:16 ` [PATCH 4/4] mm: replace PF_KCOMPACTD " Kefeng Wang
2026-09-02 15:37   ` Shakeel Butt
2026-09-02 16:36   ` Vlastimil Babka (SUSE)
2026-09-02 16:40   ` Zi Yan
2026-09-02 15:31 ` [PATCH 0/4] mm: replace PF_KCOMPACTD/PF_KSWAPD with kthread_func() Shakeel Butt
2026-09-02 20:44 ` Andrew Morton
2026-09-03 13:37   ` [PATCH] xfs: fix NOFS state corruption in btree split worker Kefeng Wang
2026-09-03 13:52     ` Brian Foster
2026-09-04  0:41       ` Kefeng Wang
2026-09-04 11:57         ` Brian Foster
2026-09-03 13:40   ` [PATCH 0/4] mm: replace PF_KCOMPACTD/PF_KSWAPD with kthread_func() Kefeng Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox