From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755506Ab3JJPWG (ORCPT ); Thu, 10 Oct 2013 11:22:06 -0400 Received: from merlin.infradead.org ([205.233.59.134]:41429 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752145Ab3JJPWE (ORCPT ); Thu, 10 Oct 2013 11:22:04 -0400 Date: Thu, 10 Oct 2013 17:21:34 +0200 From: Peter Zijlstra To: Ingo Molnar Cc: Andrew Morton , Oleg Nesterov , Paul McKenney , Mel Gorman , Rik van Riel , Srikar Dronamraju , Andrea Arcangeli , Johannes Weiner , Thomas Gleixner , Steven Rostedt , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/6] Optimize the cpu hotplug locking -v2 Message-ID: <20131010152134.GQ3081@twins.programming.kicks-ass.net> References: <20131008102505.404025673@infradead.org> <20131009225006.7101379c.akpm@linux-foundation.org> <20131010121908.GB28601@twins.programming.kicks-ass.net> <20131010145738.GA5167@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131010145738.GA5167@gmail.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 Thu, Oct 10, 2013 at 04:57:38PM +0200, Ingo Molnar wrote: > So ... why not make it _really_ cheap, i.e. the read lock costing nothing, > and tie CPU hotplug to freezing all tasks in the system? Such that we freeze regular tasks in userspace and kernel tasks in their special freezer callback so as to guarantee minimal state? If you can get people to agree with that I'm all for it. That said, Oleg wants to use the same scheme for percpu_rwsem, and I'm not sure his write-side (something in uprobes) wants to do the same.