From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx135.postini.com [74.125.245.135]) by kanga.kvack.org (Postfix) with SMTP id 1F9CB6B0083 for ; Tue, 22 May 2012 11:44:56 -0400 (EDT) Received: by yenm7 with SMTP id m7so7930393yen.14 for ; Tue, 22 May 2012 08:44:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120518161930.398418977@linux.com> References: <20120518161906.207356777@linux.com> <20120518161930.398418977@linux.com> Date: Wed, 23 May 2012 00:44:55 +0900 Message-ID: Subject: Re: [RFC] Common code 06/12] slabs: Use a common mutex definition From: JoonSoo Kim Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Lameter Cc: Pekka Enberg , linux-mm@kvack.org, David Rientjes , Matt Mackall , Glauber Costa , Alex Shi 2012/5/19 Christoph Lameter : > Use the mutex definition from SLAB and make it the common way to take a sleeping lock. > > This has the effect of using a mutex instead of a rw semaphore for SLUB. > > SLOB gains the use of a mutex for kmem_cache_create serialization. > Not needed now but SLOB may acquire some more features later (like slabinfo > / sysfs support) through the expansion of the common code that will > need this. > > Reviewed-by: Glauber Costa > Signed-off-by: Christoph Lameter Reviewed-by: Joonsoo Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org