public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcu: remove redundant nxttail index marco define
@ 2018-01-16  9:05 Liu, Changcheng
  2018-01-16 15:31 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Liu, Changcheng @ 2018-01-16  9:05 UTC (permalink / raw)
  To: Lai Jiangshan, Mathieu Desnoyers, Paul E. McKenney
  Cc: linux-kernel, changcheng.liu

rcu nxttail has been optimized to be rcu_segcblist.
The index has been defined in linux/rcu_segcblist.h

Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>

diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index 46a5d19..78cb5f3 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -185,13 +185,6 @@ union rcu_noqs {
 	u16 s; /* Set of bits, aggregate OR here. */
 };
 
-/* Index values for nxttail array in struct rcu_data. */
-#define RCU_DONE_TAIL		0	/* Also RCU_WAIT head. */
-#define RCU_WAIT_TAIL		1	/* Also RCU_NEXT_READY head. */
-#define RCU_NEXT_READY_TAIL	2	/* Also RCU_NEXT head. */
-#define RCU_NEXT_TAIL		3
-#define RCU_NEXT_SIZE		4
-
 /* Per-CPU data for read-copy update. */
 struct rcu_data {
 	/* 1) quiescent-state and grace-period handling : */
-- 
2.7.4

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

* Re: [PATCH] rcu: remove redundant nxttail index marco define
  2018-01-16  9:05 [PATCH] rcu: remove redundant nxttail index marco define Liu, Changcheng
@ 2018-01-16 15:31 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2018-01-16 15:31 UTC (permalink / raw)
  To: Liu, Changcheng; +Cc: Lai Jiangshan, Mathieu Desnoyers, linux-kernel

On Tue, Jan 16, 2018 at 05:05:14PM +0800, Liu, Changcheng wrote:
> rcu nxttail has been optimized to be rcu_segcblist.
> The index has been defined in linux/rcu_segcblist.h
> 
> Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>

Good eyes!  Applied for testing and review.

							Thanx, Paul

> diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
> index 46a5d19..78cb5f3 100644
> --- a/kernel/rcu/tree.h
> +++ b/kernel/rcu/tree.h
> @@ -185,13 +185,6 @@ union rcu_noqs {
>  	u16 s; /* Set of bits, aggregate OR here. */
>  };
> 
> -/* Index values for nxttail array in struct rcu_data. */
> -#define RCU_DONE_TAIL		0	/* Also RCU_WAIT head. */
> -#define RCU_WAIT_TAIL		1	/* Also RCU_NEXT_READY head. */
> -#define RCU_NEXT_READY_TAIL	2	/* Also RCU_NEXT head. */
> -#define RCU_NEXT_TAIL		3
> -#define RCU_NEXT_SIZE		4
> -
>  /* Per-CPU data for read-copy update. */
>  struct rcu_data {
>  	/* 1) quiescent-state and grace-period handling : */
> -- 
> 2.7.4
> 

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

end of thread, other threads:[~2018-01-16 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-16  9:05 [PATCH] rcu: remove redundant nxttail index marco define Liu, Changcheng
2018-01-16 15:31 ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox