Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

Peter Zijlstra
2014-08-04T12:25:42Z

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

On Mon, Aug 04, 2014 at 04:50:44AM -0700, Paul E. McKenney wrote:
> OK, I will bite...
>
> What kinds of tasks are on a runqueue, but neither ->on_cpu nor
> PREEMPT_ACTIVE?

Userspace tasks, they don't necessarily get PREEMPT_ACTIVE when
preempted. Now obviously you're not _that_ interested in userspace tasks
for this, so that might be ok.

But the main point was, you cannot use ->on_cpu or PREEMPT_ACTIVE
without holding rq->lock.

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]