Re: [PATCH 0/2] Replace explicit function pointer types with rcu_callback_t and call_rcu_func_t

From: Paul E. McKenney
Date: Wed Jul 29 2015 - 10:55:42 EST


On Wed, Jul 29, 2015 at 01:29:37PM +0800, Boqun Feng wrote:
> Commit ("rcu: Create a synchronize_rcu_mult()") in linux-rcu.git#rcu/next
> branch has introduced rcu_callback_t as the type for rcu callback
> functions and call_rcu_func_t has been introduced for a while. This patch
> series uses the rcu_callback_t and call_rcu_func_t to save a few lines of
> code.
>
> This patchset is based on rcu/next branch of Paul's linux-rcu tree, and
> consists of two patches:
>
> 1. Use rcu_callback_t as the type of callbacks in call_rcu*() and
> friends
>
> 2. Use call_rcu_func_t to replace the equivalent but complicated
> function pointer type.
>
> Besides cleaning up the code, this patchset can also help code tag program,
> such as cscope to generate a better database.
>
> This patchset has been already tested by 0day.

Hello, Boqun,

I have queued these for local testing.

Thanx, Paul

> Regards,
> Boqun
>
> -------------------------------------------------------------------------
> include/linux/rcupdate.h | 10 +++++-----
> include/linux/rcutiny.h | 2 +-
> include/linux/rcutree.h | 2 +-
> kernel/rcu/rcutorture.c | 6 +++---
> kernel/rcu/srcu.c | 2 +-
> kernel/rcu/tiny.c | 8 ++++----
> kernel/rcu/tree.c | 8 ++++----
> kernel/rcu/tree.h | 5 ++---
> kernel/rcu/tree_plugin.h | 2 +-
> kernel/rcu/update.c | 2 +-
> 10 files changed, 23 insertions(+), 24 deletions(-)
>
> --
> 2.4.6
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/