1. 04 Feb, 2024 4 commits
  2. 03 Feb, 2024 22 commits
  3. 01 Feb, 2024 3 commits
  4. 26 Jan, 2024 2 commits
  5. 16 Jan, 2024 5 commits
    • Nils Goroll's avatar
      buddy: fix buddy_reqs_wait_prio_adjust() · 42481d56
      Nils Goroll authored
      This fixes two bugs:
      
      The most relavant was that we did not increase buddy->wait_pri if the
      new priority was higher, which could lead to all kinds of weird effects,
      for example:
      
      - starvation/lock up
      - LRU removing all of the cache
      
      because there were requests waiting, but buddy_wait_work() did not see
      them.
      
      The second bug is that we also called buddy_wait_work() if there
      actually was no change (the critical region could find state ==
      IW_SIGNALLED).
      
      Also, for the new assertions, we need to set the proper wait_pri for the
      case that the priority is lowered.
      42481d56
    • Nils Goroll's avatar
      buddy: fix wait_pri for buddy_reqs_wait_cancel() · 9e88cd29
      Nils Goroll authored
      we did not lower buddy->wait_pri if the cancel resulted in an empty
      priority list. This was no problem, but the stricter assertions from the
      previous commit would trigger, because they now require that the
      priority list for wait_pri is filled.
      9e88cd29
    • Nils Goroll's avatar
      0e7e0670
    • Nils Goroll's avatar
      9ecc70d3
    • Nils Goroll's avatar
      Add a priority to BUDDY_POOL_INIT() · 73a860d5
      Nils Goroll authored
      For clarity and to not overlook it, pools should have a proper default
      priority. The fill callback can still change it.
      73a860d5
  6. 13 Jan, 2024 4 commits