From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752780Ab1LUIIu (ORCPT ); Wed, 21 Dec 2011 03:08:50 -0500 Received: from mail-tul01m020-f174.google.com ([209.85.214.174]:47191 "EHLO mail-tul01m020-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138Ab1LUIIs (ORCPT ); Wed, 21 Dec 2011 03:08:48 -0500 MIME-Version: 1.0 In-Reply-To: <20111220202854.GH10752@google.com> References: <20111220162315.GC10752@google.com> <20111220202854.GH10752@google.com> Date: Wed, 21 Dec 2011 10:08:48 +0200 X-Google-Sender-Auth: Wx_TYjKpZ1_4-kQeMlxmYq_p0xk Message-ID: Subject: Re: [GIT PULL] slab fixes for 3.2-rc4 From: Pekka Enberg To: Tejun Heo Cc: Linus Torvalds , Ingo Molnar , Andrew Morton , Christoph Lameter , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Thomas Gleixner Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 20, 2011 at 11:28:25AM -0800, Linus Torvalds wrote: >> > Description for 7340a0b152 "this_cpu: Introduce this_cpu_ptr() and >> > generic this_cpu_* operations" should explain the above three. >> >> I don't think that's relevant. >> >> Sure, they have semantics, but the semantics are stupid and wrong. >> Whether they are documented or not isn't even the issue. On Tue, Dec 20, 2011 at 10:28 PM, Tejun Heo wrote: > I was trying to point Pekka to documentation so that at least the > existing semantics are clear. Sure but well-defined semantics alone are not sufficient for a reasonable API. It's not at all obvious which one of the four variants to pick when writing code. I don't see any evidence that people actually understand the API. On the contrary, I see bugs caused by API confusion in mm/slub.c itself! Pekka