<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in folio_split_race_test.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2025</copyright>
    <generator>Java</generator><item>
        <title>334fbe734e687404f346eba7d5d96ed2b44d35ab - Merge tag &apos;mm-stable-2026-04-13-21-45&apos; of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm</title>
        <link>http://opengrok.net:8080/history/linux/tools/testing/selftests/mm/folio_split_race_test.c#334fbe734e687404f346eba7d5d96ed2b44d35ab</link>
        <description>Merge tag &apos;mm-stable-2026-04-13-21-45&apos; of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mmPull MM updates from Andrew Morton: - &quot;maple_tree: Replace big node with maple copy&quot; (Liam Howlett)   Mainly prepararatory work for ongoing development but it does reduce   stack usage and is an improvement. - &quot;mm, swap: swap table phase III: remove swap_map&quot; (Kairui Song)   Offers memory savings by removing the static swap_map. It also yields   some CPU savings and implements several cleanups. - &quot;mm: memfd_luo: preserve file seals&quot; (Pratyush Yadav)   File seal preservation to LUO&apos;s memfd code - &quot;mm: zswap: add per-memcg stat for incompressible pages&quot; (Jiayuan   Chen)   Additional userspace stats reportng to zswap - &quot;arch, mm: consolidate empty_zero_page&quot; (Mike Rapoport)   Some cleanups for our handling of ZERO_PAGE() and zero_pfn - &quot;mm/kmemleak: Improve scan_should_stop() implementation&quot; (Zhongqiu   Han)   A robustness improvement and some cleanups in the kmemleak code - &quot;Improve khugepaged scan logic&quot; (Vernon Yang)   Improve khugepaged scan logic and reduce CPU consumption by   prioritizing scanning tasks that access memory frequently - &quot;Make KHO Stateless&quot; (Jason Miu)   Simplify Kexec Handover by transitioning KHO from an xarray-based   metadata tracking system with serialization to a radix tree data   structure that can be passed directly to the next kernel - &quot;mm: vmscan: add PID and cgroup ID to vmscan tracepoints&quot; (Thomas   Ballasi and Steven Rostedt)   Enhance vmscan&apos;s tracepointing - &quot;mm: arch/shstk: Common shadow stack mapping helper and   VM_NOHUGEPAGE&quot; (Catalin Marinas)   Cleanup for the shadow stack code: remove per-arch code in favour of   a generic implementation - &quot;Fix KASAN support for KHO restored vmalloc regions&quot; (Pasha Tatashin)   Fix a WARN() which can be emitted the KHO restores a vmalloc area - &quot;mm: Remove stray references to pagevec&quot; (Tal Zussman)   Several cleanups, mainly udpating references to &quot;struct pagevec&quot;,   which became folio_batch three years ago - &quot;mm: Eliminate fake head pages from vmemmap optimization&quot; (Kiryl   Shutsemau)   Simplify the HugeTLB vmemmap optimization (HVO) by changing how tail   pages encode their relationship to the head page - &quot;mm/damon/core: improve DAMOS quota efficiency for core layer   filters&quot; (SeongJae Park)   Improve two problematic behaviors of DAMOS that makes it less   efficient when core layer filters are used - &quot;mm/damon: strictly respect min_nr_regions&quot; (SeongJae Park)   Improve DAMON usability by extending the treatment of the   min_nr_regions user-settable parameter - &quot;mm/page_alloc: pcp locking cleanup&quot; (Vlastimil Babka)   The proper fix for a previously hotfixed SMP=n issue. Code   simplifications and cleanups ensued - &quot;mm: cleanups around unmapping / zapping&quot; (David Hildenbrand)   A bunch of cleanups around unmapping and zapping. Mostly   simplifications, code movements, documentation and renaming of   zapping functions - &quot;support batched checking of the young flag for MGLRU&quot; (Baolin Wang)   Batched checking of the young flag for MGLRU. It&apos;s part cleanups; one   benchmark shows large performance benefits for arm64 - &quot;memcg: obj stock and slab stat caching cleanups&quot; (Johannes Weiner)   memcg cleanup and robustness improvements - &quot;Allow order zero pages in page reporting&quot; (Yuvraj Sakshith)   Enhance free page reporting - it is presently and undesirably order-0   pages when reporting free memory. - &quot;mm: vma flag tweaks&quot; (Lorenzo Stoakes)   Cleanup work following from the recent conversion of the VMA flags to   a bitmap - &quot;mm/damon: add optional debugging-purpose sanity checks&quot; (SeongJae   Park)   Add some more developer-facing debug checks into DAMON core - &quot;mm/damon: test and document power-of-2 min_region_sz requirement&quot;   (SeongJae Park)   An additional DAMON kunit test and makes some adjustments to the   addr_unit parameter handling - &quot;mm/damon/core: make passed_sample_intervals comparisons   overflow-safe&quot; (SeongJae Park)   Fix a hard-to-hit time overflow issue in DAMON core - &quot;mm/damon: improve/fixup/update ratio calculation, test and   documentation&quot; (SeongJae Park)   A batch of misc/minor improvements and fixups for DAMON - &quot;mm: move vma_(kernel|mmu)_pagesize() out of hugetlb.c&quot; (David   Hildenbrand)   Fix a possible issue with dax-device when CONFIG_HUGETLB=n. Some code   movement was required. - &quot;zram: recompression cleanups and tweaks&quot; (Sergey Senozhatsky)   A somewhat random mix of fixups, recompression cleanups and   improvements in the zram code - &quot;mm/damon: support multiple goal-based quota tuning algorithms&quot;   (SeongJae Park)   Extend DAMOS quotas goal auto-tuning to support multiple tuning   algorithms that users can select - &quot;mm: thp: reduce unnecessary start_stop_khugepaged()&quot; (Breno Leitao)   Fix the khugpaged sysfs handling so we no longer spam the logs with   reams of junk when starting/stopping khugepaged - &quot;mm: improve map count checks&quot; (Lorenzo Stoakes)   Provide some cleanups and slight fixes in the mremap, mmap and vma   code - &quot;mm/damon: support addr_unit on default monitoring targets for   modules&quot; (SeongJae Park)   Extend the use of DAMON core&apos;s addr_unit tunable - &quot;mm: khugepaged cleanups and mTHP prerequisites&quot; (Nico Pache)   Cleanups to khugepaged and is a base for Nico&apos;s planned khugepaged   mTHP support - &quot;mm: memory hot(un)plug and SPARSEMEM cleanups&quot; (David Hildenbrand)   Code movement and cleanups in the memhotplug and sparsemem code - &quot;mm: remove CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE and cleanup   CONFIG_MIGRATION&quot; (David Hildenbrand)   Rationalize some memhotplug Kconfig support - &quot;change young flag check functions to return bool&quot; (Baolin Wang)   Cleanups to change all young flag check functions to return bool - &quot;mm/damon/sysfs: fix memory leak and NULL dereference issues&quot; (Josh   Law and SeongJae Park)   Fix a few potential DAMON bugs - &quot;mm/vma: convert vm_flags_t to vma_flags_t in vma code&quot; (Lorenzo   Stoakes)   Convert a lot of the existing use of the legacy vm_flags_t data type   to the new vma_flags_t type which replaces it. Mainly in the vma   code. - &quot;mm: expand mmap_prepare functionality and usage&quot; (Lorenzo Stoakes)   Expand the mmap_prepare functionality, which is intended to replace   the deprecated f_op-&gt;mmap hook which has been the source of bugs and   security issues for some time. Cleanups, documentation, extension of   mmap_prepare into filesystem drivers - &quot;mm/huge_memory: refactor zap_huge_pmd()&quot; (Lorenzo Stoakes)   Simplify and clean up zap_huge_pmd(). Additional cleanups around   vm_normal_folio_pmd() and the softleaf functionality are performed.* tag &apos;mm-stable-2026-04-13-21-45&apos; of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (369 commits)  mm: fix deferred split queue races during migration  mm/khugepaged: fix issue with tracking lock  mm/huge_memory: add and use has_deposited_pgtable()  mm/huge_memory: add and use normal_or_softleaf_folio_pmd()  mm: add softleaf_is_valid_pmd_entry(), pmd_to_softleaf_folio()  mm/huge_memory: separate out the folio part of zap_huge_pmd()  mm/huge_memory: use mm instead of tlb-&gt;mm  mm/huge_memory: remove unnecessary sanity checks  mm/huge_memory: deduplicate zap deposited table call  mm/huge_memory: remove unnecessary VM_BUG_ON_PAGE()  mm/huge_memory: add a common exit path to zap_huge_pmd()  mm/huge_memory: handle buggy PMD entry in zap_huge_pmd()  mm/huge_memory: have zap_huge_pmd return a boolean, add kdoc  mm/huge: avoid big else branch in zap_huge_pmd()  mm/huge_memory: simplify vma_is_specal_huge()  mm: on remap assert that input range within the proposed VMA  mm: add mmap_action_map_kernel_pages[_full]()  uio: replace deprecated mmap hook with mmap_prepare in uio_info  drivers: hv: vmbus: replace deprecated mmap hook with mmap_prepare  mm: allow handling of stacked mmap_prepare hooks in more drivers  ...

            List of files:
            /linux/tools/testing/selftests/mm/folio_split_race_test.c</description>
        <pubDate>Wed, 15 Apr 2026 19:59:16 +0000</pubDate>
        <dc:creator>Linus Torvalds &lt;torvalds@linux-foundation.org&gt;</dc:creator>
    </item>
<item>
        <title>224f1292615079d604651915a214f9e5ace9e41c - selftests/mm: add folio_split() and filemap_get_entry() race test</title>
        <link>http://opengrok.net:8080/history/linux/tools/testing/selftests/mm/folio_split_race_test.c#224f1292615079d604651915a214f9e5ace9e41c</link>
        <description>selftests/mm: add folio_split() and filemap_get_entry() race testThe added folio_split_race_test is a modified C port of the race conditiontest from [1].  The test creates shmem huge pages, where the main threadpunches holes in the shmem to cause folio_split() in the kernel and a setof 16 threads reads the shmem to cause filemap_get_entry() in the kernel. filemap_get_entry() reads the folio and xarray split by folio_split()locklessly.  The original test[2] is written in rust and uses memfd (shmembacked).  This C port uses shmem directly and use a single process.Note: the initial rust to C conversion is done by Cursor.Link: https://lore.kernel.org/all/CAKNNEtw5_kZomhkugedKMPOG-sxs5Q5OLumWJdiWXv+C9Yct0w@mail.gmail.com/ [1]Link: https://github.com/dfinity/thp-madv-remove-test [2]Link: https://lkml.kernel.org/r/20260323163717.184107-1-ziy@nvidia.comCo-developed-by: Bas van Dijk &lt;bas@dfinity.org&gt;Signed-off-by: Bas van Dijk &lt;bas@dfinity.org&gt;Co-developed-by: Adam Bratschi-Kaye &lt;adam.bratschikaye@dfinity.org&gt;Signed-off-by: Adam Bratschi-Kaye &lt;adam.bratschikaye@dfinity.org&gt;Signed-off-by: Zi Yan &lt;ziy@nvidia.com&gt;Cc: Baolin Wang &lt;baolin.wang@linux.alibaba.com&gt;Cc: Barry Song &lt;baohua@kernel.org&gt;Cc: David Hildenbrand &lt;david@kernel.org&gt;Cc: Dev Jain &lt;dev.jain@arm.com&gt;Cc: Hugh Dickins &lt;hughd@google.com&gt;Cc: Lance Yang &lt;lance.yang@linux.dev&gt;Cc: Liam Howlett &lt;liam.howlett@oracle.com&gt;Cc: Lorenzo Stoakes &lt;lorenzo.stoakes@oracle.com&gt;Cc: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;Cc: Michal Hocko &lt;mhocko@suse.com&gt;Cc: Mike Rapoport &lt;rppt@kernel.org&gt;Cc: Nico Pache &lt;npache@redhat.com&gt;Cc: Ryan Roberts &lt;ryan.roberts@arm.com&gt;Cc: Shuah Khan &lt;shuah@kernel.org&gt;Cc: Suren Baghdasaryan &lt;surenb@google.com&gt;Cc: Vlastimil Babka &lt;vbabka@kernel.org&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;

            List of files:
            /linux/tools/testing/selftests/mm/folio_split_race_test.c</description>
        <pubDate>Mon, 23 Mar 2026 16:37:17 +0000</pubDate>
        <dc:creator>Zi Yan &lt;ziy@nvidia.com&gt;</dc:creator>
    </item>
</channel>
</rss>
