![]() |
lvs-devel
|
| To: | "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH v2 1/2] sched: Add cond_resched_rcu_lock() helper |
| Cc: | Julian Anastasov <ja@xxxxxx>, Simon Horman <horms@xxxxxxxxxxxx>, Eric Dumazet <eric.dumazet@xxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>, Dipankar Sarma <dipankar@xxxxxxxxxx> |
| From: | Peter Zijlstra <peterz@xxxxxxxxxxxxx> |
| Date: | Thu, 2 May 2013 09:27:43 +0200 |
On Wed, May 01, 2013 at 07:32:58AM -0700, Paul E. McKenney wrote:
> Here is how to detect this:
>
> static void inline cond_resched_rcu_lock(void)
> {
> rcu_read_unlock();
> WARN_ON_ONCE(rcu_read_lock_held());
> #ifndef CONFIG_PREEMPT_RCU
> cond_resched();
> #endif
> rcu_read_lock();
> }
The __might_sleep(__FILE__, __LINE__, PREEMPT_RCU_OFFSET) I posted in the other
email just now should deal with this.
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|
| Previous by Date: | Re: [PATCH v2 1/2] sched: Add cond_resched_rcu_lock() helper, Peter Zijlstra |
|---|---|
| Next by Date: | Re: [PATCH v2 1/2] sched: Add cond_resched_rcu_lock() helper, Julian Anastasov |
| Previous by Thread: | Re: [PATCH v2 1/2] sched: Add cond_resched_rcu_lock() helper, Paul E. McKenney |
| Next by Thread: | Re: [PATCH v2 1/2] sched: Add cond_resched_rcu_lock() helper, Peter Zijlstra |
| Indexes: | [Date] [Thread] [Top] [All Lists] |