diff mbox series

rcu-tasks: Make pr_info() output more clearly in cblist_init_generic()

Message ID 20230323040011.143884-1-qiang1.zhang@intel.com (mailing list archive)
State Accepted
Commit 6c104ef06e7fcd7a66237e2ffbac435e00503eed
Headers show
Series rcu-tasks: Make pr_info() output more clearly in cblist_init_generic() | expand

Commit Message

Zqiang March 23, 2023, 4 a.m. UTC
This commit use rtp->name instead of __func__, and output the value
of rcu_task_cb_adjust in pr_info(), reduced pr_info() calls.

Signed-off-by: Zqiang <qiang1.zhang@intel.com>
---
 kernel/rcu/tasks.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Paul E. McKenney March 23, 2023, 6:56 p.m. UTC | #1
On Thu, Mar 23, 2023 at 12:00:11PM +0800, Zqiang wrote:
> This commit use rtp->name instead of __func__, and output the value
> of rcu_task_cb_adjust in pr_info(), reduced pr_info() calls.
> 
> Signed-off-by: Zqiang <qiang1.zhang@intel.com>

Queued, thank you!

							Thanx, Paul

> ---
>  kernel/rcu/tasks.h | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h
> index 397309da3446..0cf958db4e44 100644
> --- a/kernel/rcu/tasks.h
> +++ b/kernel/rcu/tasks.h
> @@ -270,10 +270,8 @@ static void cblist_init_generic(struct rcu_tasks *rtp)
>  	}
>  	raw_spin_unlock_irqrestore(&rtp->cbs_gbl_lock, flags);
>  
> -	if (rcu_task_cb_adjust)
> -		pr_info("%s: Setting adjustable number of callback queues.\n", __func__);
> -
> -	pr_info("%s: Setting shift to %d and lim to %d.\n", __func__, data_race(rtp->percpu_enqueue_shift), data_race(rtp->percpu_enqueue_lim));
> +	pr_info("%s: Setting shift to %d and lim to %d rcu_task_cb_adjust=%d.\n", rtp->name,
> +			data_race(rtp->percpu_enqueue_shift), data_race(rtp->percpu_enqueue_lim), rcu_task_cb_adjust);
>  }
>  
>  // IRQ-work handler that does deferred wakeup for call_rcu_tasks_generic().
> -- 
> 2.25.1
>
diff mbox series

Patch

diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h
index 397309da3446..0cf958db4e44 100644
--- a/kernel/rcu/tasks.h
+++ b/kernel/rcu/tasks.h
@@ -270,10 +270,8 @@  static void cblist_init_generic(struct rcu_tasks *rtp)
 	}
 	raw_spin_unlock_irqrestore(&rtp->cbs_gbl_lock, flags);
 
-	if (rcu_task_cb_adjust)
-		pr_info("%s: Setting adjustable number of callback queues.\n", __func__);
-
-	pr_info("%s: Setting shift to %d and lim to %d.\n", __func__, data_race(rtp->percpu_enqueue_shift), data_race(rtp->percpu_enqueue_lim));
+	pr_info("%s: Setting shift to %d and lim to %d rcu_task_cb_adjust=%d.\n", rtp->name,
+			data_race(rtp->percpu_enqueue_shift), data_race(rtp->percpu_enqueue_lim), rcu_task_cb_adjust);
 }
 
 // IRQ-work handler that does deferred wakeup for call_rcu_tasks_generic().