From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755101AbcGEMlj (ORCPT ); Tue, 5 Jul 2016 08:41:39 -0400 Received: from merlin.infradead.org ([205.233.59.134]:32972 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752448AbcGEMli (ORCPT ); Tue, 5 Jul 2016 08:41:38 -0400 Date: Tue, 5 Jul 2016 14:41:29 +0200 From: Peter Zijlstra To: Konstantin Khlebnikov Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Sasha Levin , Yao Dongdong Subject: Re: [PATCH] sched/core: really pretend early bootup to be a normal task Message-ID: <20160705124129.GB30921@twins.programming.kicks-ass.net> References: <146771780366.86926.5349525389994177302.stgit@buzz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <146771780366.86926.5349525389994177302.stgit@buzz> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 05, 2016 at 02:23:23PM +0300, Konstantin Khlebnikov wrote: > Commit 1b537c7d1e58 ("sched/core: Remove check of p->sched_class") placed > "current->sched_class = &fair_sched_class" before call of init_idle() which > immediately set sched_class back to idle_sched_class. > > This patch reverts this piece because after commit de9b8f5dcbd9 ("sched: > Fix crash trying to dequeue/enqueue the idle thread") init_idle() doesn't > call do_set_cpus_allowed() and nobody will dereference ->sched_class. I don't understand, what is broken?