Re: Considerations on sched APIs under RT patch

Peter Zijlstra
2010-04-21T12:56:46Z

On Tue, 2010-04-20 at 23:56 +0200, Primiano Tucci wrote:
>
> long sched_setaffinity(pid_t pid, const struct cpumask *in_mask) {
> cpumask_var_t cpus_allowed, new_mask;
> struct task_struct *p;
> int retval;
>
> get_online_cpus();
> --> read_lock(&tasklist_lock);

FWIW recent kernels don't use tasklist_lock there anymore.