)]}'
{
  "commit": "acfefd53560409e542e00c84a9c0be05a493278f",
  "tree": "913edd0d03319ff1aa7ac9dc05631e6a86290875",
  "parents": [
    "a1daebfec3f5ca46ac261ef339efdf0dbeae997c"
  ],
  "author": {
    "name": "Alexander Motin",
    "email": "alexander.motin@TrueNAS.com",
    "time": "Mon Nov 23 10:00:16 2026 -0500"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 23 10:00:16 2026 -0500"
  },
  "message": "Linux: Don\u0027t wake kswapd for larger spl_kvmalloc() attempts\n\nWhen the ARC holds most of memory, which compaction can\u0027t move,\nkswapd can make big contiguous blocks only by evicting a large part\nof the ARC.  The amount grows exponentially with the order, while\nthe vmalloc fallback would succeed anyway at a much lower cost.\nNewer kernels\u0027 vmalloc() also first tries high orders, waking\nkswapd the same way.\n\nFor KM_SLEEP allocations whose order is above the midpoint between\nPAGE_ALLOC_COSTLY_ORDER and spl_kmem_alloc_max, clear\n__GFP_KSWAPD_RECLAIM for both the physical attempt and vmalloc().\nDirect reclaim is kept, so allocations can\u0027t fail where they did\nnot before, and retries after a failure wake kswapd as usual.\nTo keep kswapd waking at the low watermark for the order-0 pages,\nallocate and free one order-0 page that may wake it before such\nrequests.\n\nReviewed-by: Tony Hutter \u003chutter2@llnl.gov\u003e\nSigned-off-by: Alexander Motin \u003calexander.motin@TrueNAS.com\u003e\nCo-authored-by: Tigerblue77 \u003c37409593+tigerblue77@users.noreply.github.com\u003e\nCloses #19935",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "705f9c4d71694b02e65bc2f93c72c2a89dd7fcb9",
      "old_mode": 33188,
      "old_path": "include/os/linux/spl/sys/kmem.h",
      "new_id": "ac392e884b8bc4e63115671ff5e3f8b74572dafa",
      "new_mode": 33188,
      "new_path": "include/os/linux/spl/sys/kmem.h"
    },
    {
      "type": "modify",
      "old_id": "b5829ffe4ebe027515e16cab11f373213c14dfda",
      "old_mode": 33188,
      "old_path": "man/man4/spl.4",
      "new_id": "230a9cacdce5f8bad89760f3b1a6ff69e7b6d826",
      "new_mode": 33188,
      "new_path": "man/man4/spl.4"
    },
    {
      "type": "modify",
      "old_id": "199872f11c1200c65510165b15fa7522ae989603",
      "old_mode": 33188,
      "old_path": "module/os/linux/spl/spl-kmem-cache.c",
      "new_id": "9cc8ac68f3a63c12785a2bf19158d5db087944f9",
      "new_mode": 33188,
      "new_path": "module/os/linux/spl/spl-kmem-cache.c"
    },
    {
      "type": "modify",
      "old_id": "6524ddd2d5558ba1b7ac4f07e4a9b49d9dc3d1c2",
      "old_mode": 33188,
      "old_path": "module/os/linux/spl/spl-kmem.c",
      "new_id": "0a30ac6cfab617064582cc53302a88a218978765",
      "new_mode": 33188,
      "new_path": "module/os/linux/spl/spl-kmem.c"
    }
  ]
}
