Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934378AbZFLNun (ORCPT ); Fri, 12 Jun 2009 09:50:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765234AbZFLNpI (ORCPT ); Fri, 12 Jun 2009 09:45:08 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:37294 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764176AbZFLNpG (ORCPT ); Fri, 12 Jun 2009 09:45:06 -0400 Subject: Re: [GIT PULL] Early SLAB fixes for 2.6.31 From: Pekka Enberg To: Benjamin Herrenschmidt Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, cl@linux-foundation.org, kamezawa.hiroyu@jp.fujitsu.com, lizf@cn.fujitsu.com, mingo@elte.hu, npiggin@suse.de, yinghai@kernel.org In-Reply-To: <1244813895.7172.157.camel@pasglop> References: <1244813895.7172.157.camel@pasglop> Date: Fri, 12 Jun 2009 16:45:06 +0300 Message-Id: <1244814306.30512.65.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.24.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 30 Hi Ben, On Fri, 2009-06-12 at 16:25 +0300, Pekka J Enberg wrote: > > + /* Lets avoid crashing in early boot code. */ > > + if (WARN_ON_ONCE((local_flags & ~slab_gfp_mask) != 0)) > > + local_flags &= slab_gfp_mask; > > + On Fri, 2009-06-12 at 23:38 +1000, Benjamin Herrenschmidt wrote: > I still object to the WARN_ON, see all the previous discussions on that > subject... Yes, I know that! I am not proposing this as the final fix to powerpc problems. But if we were to do the masking you suggested, this is not the proper way to do it at all. We need to mask the flags much earlier than this which is why I am keeping the WARN_ON() there. The patch is a stop-gap measure until we've reached an agreement how to fix things properly. And I do think my patch is the right thing to do here while we wait for Linus' opinion on this. Pekka -- 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/