Files
Linux/lib
Mel Gorman dbbee9d5cd mm/page_alloc: convert per-cpu list protection to local_lock
There is a lack of clarity of what exactly
local_irq_save/local_irq_restore protects in page_alloc.c .  It conflates
the protection of per-cpu page allocation structures with per-cpu vmstat
deltas.

This patch protects the PCP structure using local_lock which for most
configurations is identical to IRQ enabling/disabling.  The scope of the
lock is still wider than it should be but this is decreased later.

It is possible for the local_lock to be embedded safely within struct
per_cpu_pages but it adds complexity to free_unref_page_list.

[[email protected]: coding style fixes]
[[email protected]: work around a pahole limitation with zero-sized struct pagesets]
  Link: https://lkml.kernel.org/r/[email protected]
[[email protected]: Make pagesets static]

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Mel Gorman <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Chuck Lever <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jesper Dangaard Brouer <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Sebastian Andrzej Siewior <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2021-06-29 10:53:54 -07:00
..
2021-06-29 10:53:46 -07:00
2020-10-30 17:34:45 +11:00
…
…
2021-04-14 16:30:30 +03:00
…
…
2021-05-06 19:24:12 -07:00
…
…
…
…
…
…
…
2021-01-21 14:06:00 -07:00
…
2021-06-05 08:58:12 -07:00
…
2021-01-03 20:05:18 -05:00
…
…
…
…
…
…
…
2021-04-14 16:30:30 +03:00
2021-02-26 09:41:05 -08:00
…
…
…
…
…
…
…
…
…
2021-05-06 19:24:12 -07:00
…
…
…
…
2020-12-15 22:46:16 -08:00
2020-12-15 22:46:16 -08:00
2021-02-26 09:41:05 -08:00
…
2021-02-26 09:41:05 -08:00
…
…