From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753641AbbG3ReY (ORCPT ); Thu, 30 Jul 2015 13:34:24 -0400 Received: from casper.infradead.org ([85.118.1.10]:56314 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753120AbbG3ReV (ORCPT ); Thu, 30 Jul 2015 13:34:21 -0400 Date: Thu, 30 Jul 2015 19:34:16 +0200 From: Peter Zijlstra To: Oleg Nesterov Cc: Ingo Molnar , Rik van Riel , Tejun Heo , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] stop_machine: cleanups, fix, remove lglock Message-ID: <20150730173416.GP25159@twins.programming.kicks-ass.net> References: <20150721192219.GA31150@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150721192219.GA31150@redhat.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 21, 2015 at 09:22:19PM +0200, Oleg Nesterov wrote: > Hello, > > Let me resend this. The only change in v2 is that I rediffed this > series against v4.2-rc3. > > 5/6 patch fixes the bug, I think. Say, stop_one_cpu(X) can race with > _cpu_down(X)->stop_machine() so that the kernel will crash if this > CPU X becomes online again. The window after cpu_stopper_thread() > returns and before smpboot_thread() calls ->park() is tiny, but still > this is possible afaics. But see the changelog in 6/6, I think we > should turn this cpu_stop_signal_done() into BUG() later. These I've queued (from v1 I think, nothing really changed there). > 6/6 removes lglock from kernel/stop_machine.c. > > Peter, Rik, what do you think ? This one I've got some 'problems' with, but let me reply there.