Re: getting processor numbers

Ingo Molnar
2007-04-04T09:40:10Z

* Oleg Nesterov <oleg@tv-sign.ru> wrote:

> But we don't need tasklist_lock at all, we can use
> rcu_read_lock/unlock. Q: don't we need task_rq_lock() to read
> ->cpus_allowed "atomically" ?

right now ->cpus_allowed is protected by tasklist_lock. We cannot do RCU
here because ->cpus_allowed modifications are not RCUified.

Ingo