From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757583AbdDRQqx (ORCPT ); Tue, 18 Apr 2017 12:46:53 -0400 Received: from mail.kernel.org ([198.145.29.136]:46256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752531AbdDRQqi (ORCPT ); Tue, 18 Apr 2017 12:46:38 -0400 Date: Tue, 18 Apr 2017 12:46:29 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: jbaron@akamai.com, tglx@linutronix.de, mingo@kernel.org, bigeasy@linutronix.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] jump_label: Provide static_key_slow_inc_nohp() Message-ID: <20170418124629.13316f8d@gandalf.local.home> In-Reply-To: <20170418130350.cwfij23vc4ybklkp@hirez.programming.kicks-ass.net> References: <20170418103213.089888286@infradead.org> <20170418103422.636958338@infradead.org> <20170418130350.cwfij23vc4ybklkp@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Apr 2017 15:03:50 +0200 Peter Zijlstra wrote: > +++ b/kernel/padata.c > @@ -1008,11 +1008,10 @@ static struct padata_instance *padata_al > * parallel workers. > * > * @wq: workqueue to use for the allocated padata instance > - * > - * Must be called from a get_online_cpus() protected region Find the comment redundant? Reviewed-by: Steven Rostedt (VMware) -- Steve > */ > struct padata_instance *padata_alloc_possible(struct workqueue_struct *wq) > { > + lockdep_assert_hotplug_held(); > return padata_alloc(wq, cpu_possible_mask, cpu_possible_mask); > } > EXPORT_SYMBOL(padata_alloc_possible); > --- a/kernel/stop_machine.c > +++ b/kernel/stop_machine.c > @@ -561,6 +561,8 @@ int stop_machine_locked(cpu_stop_fn_t fn > .active_cpus = cpus, > }; > > + lockdep_assert_hotplug_held(); > + > if (!stop_machine_initialized) { > /* > * Handle the case where stop_machine() is called