On Fri, Oct 19, 2012 at 01:45:28PM +0800, Tang Chen wrote: > cmci_rediscover() used set_cpus_allowed_ptr() to change the current process's > running cpu, and migrate itself to the dest cpu. But worker processes are not > allowed to be migrated. If current is a worker, the worker will be migrated to > another cpu, but the corresponding worker_pool is still on the original cpu. > > In this case, the following BUG_ON in try_to_wake_up_local() will be > triggered: > BUG_ON(rq != this_rq()); > > This will cause the kernel panic. > > This patch removes the set_cpus_allowed_ptr() call, and put the cmci > rediscover > jobs onto all the other cpus using system_wq. This could bring some delay for > the jobs. > > Signed-off-by: Tang Chen <tangc...@cn.fujitsu.com> > Signed-off-by: Miao Xie <mi...@cn.fujitsu.com>
I guess this is ok. Tony? -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach GM: Alberto Bozzo Reg: Dornach, Landkreis Muenchen HRB Nr. 43632 WEEE Registernr: 129 19551 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/