All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Joe Lawrence <joe.lawrence@stratus.com>
Cc: linux-kernel@vger.kernel.org, tj@kernel.org, jiri@resnulli.us
Subject: Re: [PATCH v2 2/2] workqueue: use cond_resched_rcu_qs macro
Date: Sun, 5 Oct 2014 11:47:34 -0700	[thread overview]
Message-ID: <20141005184734.GU5015@linux.vnet.ibm.com> (raw)
In-Reply-To: <1412529862-17954-3-git-send-email-joe.lawrence@stratus.com>

On Sun, Oct 05, 2014 at 01:24:22PM -0400, Joe Lawrence wrote:
> Tidy up and use cond_resched_rcu_qs when calling cond_resched and
> reporting potential quiescent state to RCU.
> 
> Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>

Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

> ---
>  kernel/workqueue.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/kernel/workqueue.c b/kernel/workqueue.c
> index 345bec9..09b685d 100644
> --- a/kernel/workqueue.c
> +++ b/kernel/workqueue.c
> @@ -2046,8 +2046,7 @@ __acquires(&pool->lock)
>  	 * stop_machine. At the same time, report a quiescent RCU state so
>  	 * the same condition doesn't freeze RCU.
>  	 */
> -	rcu_note_voluntary_context_switch(current);
> -	cond_resched();
> +	cond_resched_rcu_qs();
> 
>  	spin_lock_irq(&pool->lock);
> 
> -- 
> 1.7.10.4
> 


  reply	other threads:[~2014-10-05 18:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-05 17:24 [PATCH v2 0/2] workqueue: add RCU quiescent state between items Joe Lawrence
2014-10-05 17:24 ` [PATCH v2 1/2] workqueue: add quiescent state between work items Joe Lawrence
2014-10-05 19:21   ` Tejun Heo
2014-10-05 19:47     ` Tejun Heo
2014-10-06  4:21       ` Paul E. McKenney
2014-10-07  7:29         ` Jiri Pirko
2014-10-07 13:43           ` Paul E. McKenney
2014-10-07 17:45             ` Joe Lawrence
2014-10-08  3:24               ` Paul E. McKenney
2014-10-08 11:54                 ` Jiri Pirko
2014-10-08 12:19                   ` Paul E. McKenney
2014-10-05 17:24 ` [PATCH v2 2/2] workqueue: use cond_resched_rcu_qs macro Joe Lawrence
2014-10-05 18:47   ` Paul E. McKenney [this message]
2014-10-05 19:48   ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141005184734.GU5015@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=jiri@resnulli.us \
    --cc=joe.lawrence@stratus.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.