Re: failing kthread_create_on_node()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Konrad Eisele <konrad@xxxxxxxxxxx>
Date: Mon, 16 Apr 2012 11:58:14 +0200

> will return rq->stop through stop-task scheduling class and
> then CPU 1 will execute <p>. However <p> is actually bound to
> rq[0] and i.e. task_thread_info(p)->cpu is 0 so for instance
> smp_processor_id() will return 0 and the crash happens as a
> side-effect of cpu0 and cpu1 at the end executing <init>-task
> at the same time.
> 
> I'd like to try to fix this but before messing with
> arch/sparc/kernel_thread()
> and arch/sparc/sparc_do_fork() I'd first want for how to fix this
> the best way...

I don't see why special handling should be necessary.

Sparc64 doesn't do anything special wrt. thread_info()->cpu in
it's fork handling, so I don't see why sparc32 would need to.

If the scheduler is executing a task from the runqueue of one
cpu, on another cpu, that doesn't sound like a sparc problem
unless some other piece of sparc specific state is not setup
properly.

Please describe the sequence of events in more detail so we
can analyze this better.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux