All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu()
@ 2018-02-06 10:19 ` Kirill Tkhai
  0 siblings, 0 replies; 58+ messages in thread
From: Kirill Tkhai @ 2018-02-06 10:19 UTC (permalink / raw)
  To: paulmck, josh, rostedt, mathieu.desnoyers, jiangshanlai, mingo,
	cl, penberg, rientjes, iamjoonsoo.kim, akpm, ktkhai, linux-kernel,
	linux-mm

Recent times kvmalloc() begun widely be used in kernel.
Some of such memory allocations have to be freed after
rcu grace period, and this patchset introduces a generic
primitive for doing this.

Actually, everything is made in [1/2]. Patch [2/2] is just
added to make new kvfree_rcu() have the first user.

The patch [1/2] transforms kfree_rcu(), its sub definitions
and its sub functions into kvfree_rcu() form. The most
significant change is in __rcu_reclaim(), where kvfree()
is used instead of kfree(). Since kvfree() is able to
have a deal with memory allocated via kmalloc(), vmalloc()
and kvmalloc(); kfree_rcu() and vfree_rcu() may simply
be defined through this new kvfree_rcu().

---

Kirill Tkhai (2):
      rcu: Transform kfree_rcu() into kvfree_rcu()
      mm: Use kvfree_rcu() in update_memcg_params()


 include/linux/rcupdate.h   |   31 +++++++++++++++++--------------
 include/linux/rcutiny.h    |    4 ++--
 include/linux/rcutree.h    |    2 +-
 include/trace/events/rcu.h |   12 ++++++------
 kernel/rcu/rcu.h           |    8 ++++----
 kernel/rcu/tree.c          |   14 +++++++-------
 kernel/rcu/tree_plugin.h   |   10 +++++-----
 mm/slab_common.c           |   10 +---------
 8 files changed, 43 insertions(+), 48 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 58+ messages in thread

end of thread, other threads:[~2018-02-22 23:55 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-06 10:19 [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu() Kirill Tkhai
2018-02-06 10:19 ` Kirill Tkhai
2018-02-06 10:19 ` [PATCH 1/2] " Kirill Tkhai
2018-02-06 10:19   ` Kirill Tkhai
2018-02-06 14:34   ` Steven Rostedt
2018-02-06 14:34     ` Steven Rostedt
2018-02-06 15:06     ` Kirill Tkhai
2018-02-06 15:06       ` Kirill Tkhai
2018-02-06 15:49       ` Steven Rostedt
2018-02-06 15:49         ` Steven Rostedt
2018-02-06 10:19 ` [PATCH 2/2] mm: Use kvfree_rcu() in update_memcg_params() Kirill Tkhai
2018-02-06 10:19   ` Kirill Tkhai
2018-02-07  2:17 ` [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu() Paul E. McKenney
2018-02-07  2:17   ` Paul E. McKenney
2018-02-07  4:23   ` Matthew Wilcox
2018-02-07  4:23     ` Matthew Wilcox
2018-02-07  5:02     ` Paul E. McKenney
2018-02-07  5:02       ` Paul E. McKenney
2018-02-07  7:54       ` Josh Triplett
2018-02-07  7:54         ` Josh Triplett
2018-02-07  8:20         ` Paul E. McKenney
2018-02-07  8:20           ` Paul E. McKenney
2018-02-07  7:57       ` Kirill Tkhai
2018-02-07  7:57         ` Kirill Tkhai
2018-02-07  8:31         ` Paul E. McKenney
2018-02-07  8:31           ` Paul E. McKenney
2018-02-07 13:57           ` Steven Rostedt
2018-02-07 13:57             ` Steven Rostedt
2018-02-07 16:18             ` Matthew Wilcox
2018-02-07 16:18               ` Matthew Wilcox
2018-02-07 16:34               ` Steven Rostedt
2018-02-07 16:34                 ` Steven Rostedt
2018-02-07 16:45             ` Jesper Dangaard Brouer
2018-02-07 16:45               ` Jesper Dangaard Brouer
2018-02-07 18:10               ` Matthew Wilcox
2018-02-07 18:10                 ` Matthew Wilcox
2018-02-07 18:26                 ` Steven Rostedt
2018-02-07 18:26                   ` Steven Rostedt
2018-02-08  4:10                   ` Paul E. McKenney
2018-02-08  4:10                     ` Paul E. McKenney
2018-02-22 23:55                 ` Paul E. McKenney
2018-02-22 23:55                   ` Paul E. McKenney
2018-02-08  4:09             ` Paul E. McKenney
2018-02-08  4:09               ` Paul E. McKenney
2018-02-07 16:47     ` Christopher Lameter
2018-02-07 16:47       ` Christopher Lameter
2018-02-07 17:09       ` Steven Rostedt
2018-02-07 17:09         ` Steven Rostedt
2018-02-07 17:19         ` Matthew Wilcox
2018-02-07 17:19           ` Matthew Wilcox
2018-02-07 17:29           ` Steven Rostedt
2018-02-07 17:29             ` Steven Rostedt
2018-02-07 17:54             ` Christopher Lameter
2018-02-07 17:54               ` Christopher Lameter
2018-02-07 14:55   ` Christopher Lameter
2018-02-07 14:55     ` Christopher Lameter
2018-02-08  4:09     ` Paul E. McKenney
2018-02-08  4:09       ` Paul E. McKenney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.