Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-03 Thread Chen Gang F T
On 09/04/2013 03:36 AM, Paul E. McKenney wrote: > On Mon, Aug 26, 2013 at 10:21:18AM +0800, Chen Gang F T wrote: >> >> Firstly, thank you for your reply with these details. >> >> On 08/26/2013 03:18 AM, Paul E. McKenney wrote: >>> On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: On

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-03 Thread Chen Gang
On 09/04/2013 01:59 AM, Paul E. McKenney wrote: > On Tue, Sep 03, 2013 at 01:41:03PM +0800, Chen Gang wrote: >> Hello Maintainers: >> >> Is this issue finished ? >> >> If need additional help from me (e.g. some test things, or others, if >> you have no time, can let me try), please let me know, I

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-03 Thread Paul E. McKenney
On Mon, Aug 26, 2013 at 10:21:18AM +0800, Chen Gang F T wrote: > > Firstly, thank you for your reply with these details. > > On 08/26/2013 03:18 AM, Paul E. McKenney wrote: > > On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: > >> On 08/21/2013 10:23 PM, Paul E. McKenney wrote: > >>>

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-03 Thread Paul E. McKenney
On Tue, Sep 03, 2013 at 01:41:03PM +0800, Chen Gang wrote: > Hello Maintainers: > > Is this issue finished ? > > If need additional help from me (e.g. some test things, or others, if > you have no time, can let me try), please let me know, I should try. Ah, sorry, here is the patch.

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-03 Thread Paul E. McKenney
On Tue, Sep 03, 2013 at 01:41:03PM +0800, Chen Gang wrote: Hello Maintainers: Is this issue finished ? If need additional help from me (e.g. some test things, or others, if you have no time, can let me try), please let me know, I should try. Ah, sorry, here is the patch.

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-03 Thread Paul E. McKenney
On Mon, Aug 26, 2013 at 10:21:18AM +0800, Chen Gang F T wrote: Firstly, thank you for your reply with these details. On 08/26/2013 03:18 AM, Paul E. McKenney wrote: On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: On 08/21/2013 10:23 PM, Paul E. McKenney wrote: On Wed, Aug

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-03 Thread Chen Gang
On 09/04/2013 01:59 AM, Paul E. McKenney wrote: On Tue, Sep 03, 2013 at 01:41:03PM +0800, Chen Gang wrote: Hello Maintainers: Is this issue finished ? If need additional help from me (e.g. some test things, or others, if you have no time, can let me try), please let me know, I should try.

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-03 Thread Chen Gang F T
On 09/04/2013 03:36 AM, Paul E. McKenney wrote: On Mon, Aug 26, 2013 at 10:21:18AM +0800, Chen Gang F T wrote: Firstly, thank you for your reply with these details. On 08/26/2013 03:18 AM, Paul E. McKenney wrote: On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: On 08/21/2013

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-02 Thread Chen Gang
Hello Maintainers: Is this issue finished ? If need additional help from me (e.g. some test things, or others, if you have no time, can let me try), please let me know, I should try. Thanks. On 08/26/2013 10:21 AM, Chen Gang F T wrote: > > Firstly, thank you for your reply with these

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-09-02 Thread Chen Gang
Hello Maintainers: Is this issue finished ? If need additional help from me (e.g. some test things, or others, if you have no time, can let me try), please let me know, I should try. Thanks. On 08/26/2013 10:21 AM, Chen Gang F T wrote: Firstly, thank you for your reply with these details.

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-25 Thread Chen Gang F T
Firstly, thank you for your reply with these details. On 08/26/2013 03:18 AM, Paul E. McKenney wrote: > On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: >> On 08/21/2013 10:23 PM, Paul E. McKenney wrote: >>> On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: > > [ . . . ] >

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-25 Thread Paul E. McKenney
On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: > On 08/21/2013 10:23 PM, Paul E. McKenney wrote: > > On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: [ . . . ] > > Don't get me wrong, I do welcome appropriate patches. In fact, if > > you look at RCU's git history, you will

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-25 Thread Paul E. McKenney
On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: On 08/21/2013 10:23 PM, Paul E. McKenney wrote: On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: [ . . . ] Don't get me wrong, I do welcome appropriate patches. In fact, if you look at RCU's git history, you will see

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-25 Thread Chen Gang F T
Firstly, thank you for your reply with these details. On 08/26/2013 03:18 AM, Paul E. McKenney wrote: On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: On 08/21/2013 10:23 PM, Paul E. McKenney wrote: On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: [ . . . ] Don't

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-21 Thread Chen Gang
On 08/21/2013 10:23 PM, Paul E. McKenney wrote: > On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: >> >> If we still doubt about it, but can not find a suitable way to fix it >> (neither of us are familiar with it). > > Well, you have that halfway correct, which some might well argue is

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-21 Thread Paul E. McKenney
On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: > > If we still doubt about it, but can not find a suitable way to fix it > (neither of us are familiar with it). Well, you have that halfway correct, which some might well argue is an upward trend from your earlier postings. I do

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-21 Thread Chen Gang
If we still doubt about it, but can not find a suitable way to fix it (neither of us are familiar with it). Is it suitable to use BUG_ON() for it (the diff may like below) ? ---diff begin--- diff --git a/kernel/rcutree.c

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-21 Thread Chen Gang
If we still doubt about it, but can not find a suitable way to fix it (neither of us are familiar with it). Is it suitable to use BUG_ON() for it (the diff may like below) ? ---diff begin--- diff --git a/kernel/rcutree.c

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-21 Thread Paul E. McKenney
On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: If we still doubt about it, but can not find a suitable way to fix it (neither of us are familiar with it). Well, you have that halfway correct, which some might well argue is an upward trend from your earlier postings. I do

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-21 Thread Chen Gang
On 08/21/2013 10:23 PM, Paul E. McKenney wrote: On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: If we still doubt about it, but can not find a suitable way to fix it (neither of us are familiar with it). Well, you have that halfway correct, which some might well argue is an

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
On 08/20/2013 12:43 PM, Chen Gang wrote: > On 08/20/2013 12:18 PM, Paul E. McKenney wrote: >> On Tue, Aug 20, 2013 at 11:51:23AM +0800, Chen Gang wrote: >>> >>> >>> If 'hc' is false, 'al' will never be false, either (only need check >>> "irdp->qlen != rdp->qlen_lazy' when 'rdp->nxtlist'

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
On 08/20/2013 12:18 PM, Paul E. McKenney wrote: > On Tue, Aug 20, 2013 at 11:51:23AM +0800, Chen Gang wrote: >> >> >> If 'hc' is false, 'al' will never be false, either (only need check >> "irdp->qlen != rdp->qlen_lazy' when 'rdp->nxtlist' existance). >> >> Recommend to improve the related code,

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
On 08/20/2013 12:10 PM, Paul E. McKenney wrote: > On Tue, Aug 20, 2013 at 11:50:02AM +0800, Chen Gang wrote: >> According to the comment above rcu_cpu_has_callbacks(): "If there are >> no callbacks, all of them are deemed to be lazy". >> >> So when both 'hc' and 'al' are false, '*all_lazy' should

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Paul E. McKenney
On Tue, Aug 20, 2013 at 11:51:23AM +0800, Chen Gang wrote: > > > If 'hc' is false, 'al' will never be false, either (only need check > "irdp->qlen != rdp->qlen_lazy' when 'rdp->nxtlist' existance). > > Recommend to improve the related code, like the diff below. Are you sure that this

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Paul E. McKenney
On Tue, Aug 20, 2013 at 11:50:02AM +0800, Chen Gang wrote: > According to the comment above rcu_cpu_has_callbacks(): "If there are > no callbacks, all of them are deemed to be lazy". > > So when both 'hc' and 'al' are false, '*all_lazy' should be true, not > false. If there are no callbacks,

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
If 'hc' is false, 'al' will never be false, either (only need check "irdp->qlen != rdp->qlen_lazy' when 'rdp->nxtlist' existance). Recommend to improve the related code, like the diff below. --diff begin diff --git

[PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
According to the comment above rcu_cpu_has_callbacks(): "If there are no callbacks, all of them are deemed to be lazy". So when both 'hc' and 'al' are false, '*all_lazy' should be true, not false. Signed-off-by: Chen Gang --- kernel/rcutree.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
According to the comment above rcu_cpu_has_callbacks(): If there are no callbacks, all of them are deemed to be lazy. So when both 'hc' and 'al' are false, '*all_lazy' should be true, not false. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/rcutree.c |2 +- 1 files changed, 1

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
If 'hc' is false, 'al' will never be false, either (only need check irdp-qlen != rdp-qlen_lazy' when 'rdp-nxtlist' existance). Recommend to improve the related code, like the diff below. --diff begin diff --git

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Paul E. McKenney
On Tue, Aug 20, 2013 at 11:50:02AM +0800, Chen Gang wrote: According to the comment above rcu_cpu_has_callbacks(): If there are no callbacks, all of them are deemed to be lazy. So when both 'hc' and 'al' are false, '*all_lazy' should be true, not false. If there are no callbacks, what must

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Paul E. McKenney
On Tue, Aug 20, 2013 at 11:51:23AM +0800, Chen Gang wrote: If 'hc' is false, 'al' will never be false, either (only need check irdp-qlen != rdp-qlen_lazy' when 'rdp-nxtlist' existance). Recommend to improve the related code, like the diff below. Are you sure that this represents an

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
On 08/20/2013 12:10 PM, Paul E. McKenney wrote: On Tue, Aug 20, 2013 at 11:50:02AM +0800, Chen Gang wrote: According to the comment above rcu_cpu_has_callbacks(): If there are no callbacks, all of them are deemed to be lazy. So when both 'hc' and 'al' are false, '*all_lazy' should be true,

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
On 08/20/2013 12:18 PM, Paul E. McKenney wrote: On Tue, Aug 20, 2013 at 11:51:23AM +0800, Chen Gang wrote: If 'hc' is false, 'al' will never be false, either (only need check irdp-qlen != rdp-qlen_lazy' when 'rdp-nxtlist' existance). Recommend to improve the related code, like the diff

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-19 Thread Chen Gang
On 08/20/2013 12:43 PM, Chen Gang wrote: On 08/20/2013 12:18 PM, Paul E. McKenney wrote: On Tue, Aug 20, 2013 at 11:51:23AM +0800, Chen Gang wrote: If 'hc' is false, 'al' will never be false, either (only need check irdp-qlen != rdp-qlen_lazy' when 'rdp-nxtlist' existance). Recommend to