Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759303AbXEOSg4 (ORCPT ); Tue, 15 May 2007 14:36:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758255AbXEOSgp (ORCPT ); Tue, 15 May 2007 14:36:45 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:50918 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756615AbXEOSgo (ORCPT ); Tue, 15 May 2007 14:36:44 -0400 Date: Tue, 15 May 2007 11:36:43 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Andrew Morton cc: Badari Pulavarty , netdev@vger.kernel.org, lkml Subject: Re: select(0, ..) is valid ? In-Reply-To: <20070515113033.75d7bff6.akpm@linux-foundation.org> Message-ID: References: <1179250159.2836.117.camel@dyn9047017100.beaverton.ibm.com> <20070515104453.f901e91f.akpm@linux-foundation.org> <20070515113033.75d7bff6.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 845 Lines: 24 On Tue, 15 May 2007, Andrew Morton wrote: > Perhaps putting a size=0 detector into slab also would speed this > process up. Signed-off-by: Christoph Lameter Index: linux-2.6/mm/slab.c =================================================================== --- linux-2.6.orig/mm/slab.c 2007-05-15 11:32:25.000000000 -0700 +++ linux-2.6/mm/slab.c 2007-05-15 11:35:55.000000000 -0700 @@ -792,6 +792,7 @@ static inline struct kmem_cache *__find_ */ BUG_ON(malloc_sizes[INDEX_AC].cs_cachep == NULL); #endif + WARN_ON_ONCE(size == 0); while (size > csizep->cs_size) csizep++; - 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/