Files
linux/mm
Marco Elver 71710d40d9 UPSTREAM: kfence: use TASK_IDLE when awaiting allocation
Since wait_event() uses TASK_UNINTERRUPTIBLE by default, waiting for an
allocation counts towards load.  However, for KFENCE, this does not make
any sense, since there is no busy work we're awaiting.

Instead, use TASK_IDLE via wait_event_idle() to not count towards load.

BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1185565
Link: https://lkml.kernel.org/r/20210521083209.3740269-1-elver@google.com
Fixes: 407f1d8c1b ("kfence: await for allocation using wait_event")
Signed-off-by: Marco Elver <elver@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: David Laight <David.Laight@ACULAB.COM>
Cc: Hillf Danton <hdanton@sina.com>
Cc: <stable@vger.kernel.org>	[5.12+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 8fd0e995cc)
Bug: 187129171
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: I837f80e59c11d0322063bac0b2873c25ff528ab6
2021-08-27 12:26:09 -07:00
..
2021-06-04 11:15:16 -07:00
2021-04-30 09:13:34 -07:00
2021-05-20 15:35:25 +02:00
2021-06-12 14:48:14 +02:00
2021-03-25 19:20:09 +00:00
2021-05-20 15:35:25 +02:00
2021-05-20 15:35:25 +02:00
2021-04-30 09:13:34 -07:00
2021-05-20 15:35:25 +02:00
2021-02-25 19:36:38 +00:00
2021-04-30 09:13:34 -07:00
2021-04-15 14:23:41 +02:00
2021-04-22 11:12:08 +02:00
2021-05-15 09:28:55 +02:00
2021-03-07 12:53:30 +01:00