All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcu/tree_plugin: Fix nohz status in stall warning
@ 2019-03-08 18:21 Neeraj Upadhyay
  2019-03-08 21:18 ` Paul E. McKenney
  0 siblings, 1 reply; 3+ messages in thread
From: Neeraj Upadhyay @ 2019-03-08 18:21 UTC (permalink / raw)
  To: paulmck, josh, rostedt, mathieu.desnoyers, jiangshanlai
  Cc: linux-kernel, Neeraj Upadhyay

Fix stall warning, to show correct nohz marker.

Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
---
 kernel/rcu/tree_plugin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 97dba50..93da32c 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -1659,7 +1659,7 @@ static void print_cpu_stall_fast_no_hz(char *cp, int cpu)
 		rdp->last_accelerate & 0xffff, jiffies & 0xffff,
 		".l"[rdp->all_lazy],
 		".L"[!rcu_segcblist_n_nonlazy_cbs(&rdp->cblist)],
-		".D"[!rdp->tick_nohz_enabled_snap]);
+		".D"[!!rdp->tick_nohz_enabled_snap]);
 }
 
 #else /* #ifdef CONFIG_RCU_FAST_NO_HZ */
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member of the Code Aurora Forum, hosted by The Linux Foundation


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

* Re: [PATCH] rcu/tree_plugin: Fix nohz status in stall warning
  2019-03-08 18:21 [PATCH] rcu/tree_plugin: Fix nohz status in stall warning Neeraj Upadhyay
@ 2019-03-08 21:18 ` Paul E. McKenney
  2019-03-09  3:42   ` Neeraj Upadhyay
  0 siblings, 1 reply; 3+ messages in thread
From: Paul E. McKenney @ 2019-03-08 21:18 UTC (permalink / raw)
  To: Neeraj Upadhyay
  Cc: josh, rostedt, mathieu.desnoyers, jiangshanlai, linux-kernel

On Fri, Mar 08, 2019 at 11:51:49PM +0530, Neeraj Upadhyay wrote:
> Fix stall warning, to show correct nohz marker.
> 
> Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>

Good eyes, thank you!

I applied and pushed all three with modified commit logs.  Please check
to make sure that I didn't mess anything up.  If testing and reviews
are OK, I expect to submit them for the v5.2 merge window.

I had to hand-apply this one, so in future patches could you please
generate them against -rcu?  It may be found here:

	git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git

							Thanx, Paul

> ---
>  kernel/rcu/tree_plugin.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
> index 97dba50..93da32c 100644
> --- a/kernel/rcu/tree_plugin.h
> +++ b/kernel/rcu/tree_plugin.h
> @@ -1659,7 +1659,7 @@ static void print_cpu_stall_fast_no_hz(char *cp, int cpu)
>  		rdp->last_accelerate & 0xffff, jiffies & 0xffff,
>  		".l"[rdp->all_lazy],
>  		".L"[!rcu_segcblist_n_nonlazy_cbs(&rdp->cblist)],
> -		".D"[!rdp->tick_nohz_enabled_snap]);
> +		".D"[!!rdp->tick_nohz_enabled_snap]);
>  }
> 
>  #else /* #ifdef CONFIG_RCU_FAST_NO_HZ */
> -- 
> QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
> member of the Code Aurora Forum, hosted by The Linux Foundation
> 


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

* Re: [PATCH] rcu/tree_plugin: Fix nohz status in stall warning
  2019-03-08 21:18 ` Paul E. McKenney
@ 2019-03-09  3:42   ` Neeraj Upadhyay
  0 siblings, 0 replies; 3+ messages in thread
From: Neeraj Upadhyay @ 2019-03-09  3:42 UTC (permalink / raw)
  To: paulmck; +Cc: josh, rostedt, mathieu.desnoyers, jiangshanlai, linux-kernel



On 3/9/19 2:48 AM, Paul E. McKenney wrote:
> On Fri, Mar 08, 2019 at 11:51:49PM +0530, Neeraj Upadhyay wrote:
>> Fix stall warning, to show correct nohz marker.
>>
>> Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
> 
> Good eyes, thank you!
> 
> I applied and pushed all three with modified commit logs.  Please check
> to make sure that I didn't mess anything up.  If testing and reviews
> are OK, I expect to submit them for the v5.2 merge window.
> 
> I had to hand-apply this one, so in future patches could you please
> generate them against -rcu?  It may be found here:
> 
> 	git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
> 
> 							Thanx, Paul
> 

Thanks Paul, I reviewed the patches on -rcu; they look good. Thanks for 
applying them! I will move my codebase to  -rcu, for all future work.

Thanks
Neeraj

>> ---
>>   kernel/rcu/tree_plugin.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
>> index 97dba50..93da32c 100644
>> --- a/kernel/rcu/tree_plugin.h
>> +++ b/kernel/rcu/tree_plugin.h
>> @@ -1659,7 +1659,7 @@ static void print_cpu_stall_fast_no_hz(char *cp, int cpu)
>>   		rdp->last_accelerate & 0xffff, jiffies & 0xffff,
>>   		".l"[rdp->all_lazy],
>>   		".L"[!rcu_segcblist_n_nonlazy_cbs(&rdp->cblist)],
>> -		".D"[!rdp->tick_nohz_enabled_snap]);
>> +		".D"[!!rdp->tick_nohz_enabled_snap]);
>>   }
>>
>>   #else /* #ifdef CONFIG_RCU_FAST_NO_HZ */
>> -- 
>> QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
>> member of the Code Aurora Forum, hosted by The Linux Foundation
>>
> 

-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member of the Code Aurora Forum, hosted by The Linux Foundation

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

end of thread, other threads:[~2019-03-09  3:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 18:21 [PATCH] rcu/tree_plugin: Fix nohz status in stall warning Neeraj Upadhyay
2019-03-08 21:18 ` Paul E. McKenney
2019-03-09  3:42   ` Neeraj Upadhyay

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.