kvfree_rcu: Use __GFP_NOMEMALLOC for single-argument kvfree_rcu()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 20 Jan 2021 16:21:47 +0000 (17:21 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 8 Mar 2021 22:18:07 +0000 (14:18 -0800)
commitb01b405092b7940bd366053a27ed54a87c84e96a
tree807a8fd79730fc35d6259bbf700b51c437c2d5b6
parent148e3731d124079a036b3acf780f3d35c1b9c0aa
kvfree_rcu: Use __GFP_NOMEMALLOC for single-argument kvfree_rcu()

This commit applies the __GFP_NOMEMALLOC gfp flag to memory allocations
carried out by the single-argument variant of kvfree_rcu(), thus avoiding
this can-sleep code path from dipping into the emergency reserves.

Acked-by: Michal Hocko <mhocko@suse.com>
Suggested-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c