Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933139AbbBIOm2 (ORCPT ); Mon, 9 Feb 2015 09:42:28 -0500 Received: from casper.infradead.org ([85.118.1.10]:53374 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932842AbbBIOm0 (ORCPT ); Mon, 9 Feb 2015 09:42:26 -0500 Date: Mon, 9 Feb 2015 15:42:17 +0100 From: Peter Zijlstra To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, paulus@samba.org, akpm@linux-foundation.org, heiko.carstens@de.ibm.com, schwidefsky@de.ibm.com, borntraeger@de.ibm.com, mst@redhat.com, David.Laight@ACULAB.COM, hughd@google.com, hocko@suse.cz Subject: Re: [PATCH v2 0/5] Reenable might_sleep() checks for might_fault() Message-ID: <20150209144217.GT5029@twins.programming.kicks-ass.net> References: <1418221414-60110-1-git-send-email-dahi@linux.vnet.ibm.com> <20150112151911.4a51f09d@thinkpad-w530> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150112151911.4a51f09d@thinkpad-w530> 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 Content-Length: 1010 Lines: 25 On Mon, Jan 12, 2015 at 03:19:11PM +0100, David Hildenbrand wrote: > Thomas, Peter, > > anything that speaks against putting the pagefault_disable counter into > thread_info (my series) instead of task_struct (rt tree)? > > IOW, what would be the right place for it? I think we put it in task_struct because lazy; ARM seems one of the few popular archs where current still goes through thread_info. And that I think is the only reason to maybe use thread_info, cost of access. The down-side of using thread_info is of course that it reduces stack size. In any case; I think that if you want to go do this; please consider the route -rt took and completely separate the two, don't leave the preempt_count_{inc,dec} remnant in pagefault_{en,dis}able() at all. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/