Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754095AbZDOOw5 (ORCPT ); Wed, 15 Apr 2009 10:52:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752153AbZDOOwr (ORCPT ); Wed, 15 Apr 2009 10:52:47 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:57405 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711AbZDOOwq (ORCPT ); Wed, 15 Apr 2009 10:52:46 -0400 Date: Wed, 15 Apr 2009 07:45:16 -0700 (PDT) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: Andrew Morton cc: Ali Gholami Rudi , Ingo Molnar , Valdis.Kletnieks@vt.edu, Mike Travis , Linux Kernel Mailing List , mm-commits@vger.kernel.org, Rusty Russell , Dave Jones , Len Brown Subject: Re: mmotm 2009-04-10-02-21 uploaded - forkbombed by work_for_cpu In-Reply-To: <20090415013456.cf5ce205.akpm@linux-foundation.org> Message-ID: References: <200904100922.n3A9MOIV013828@imap1.linux-foundation.org> <4609.1239456126@turing-police.cc.vt.edu> <20090413171853.GA4601@elte.hu> <20090413102749.4ca3a217.akpm@linux-foundation.org> <20090415081534.GA2894@lilem.mirepesht> <20090415013456.cf5ce205.akpm@linux-foundation.org> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1093 Lines: 34 On Wed, 15 Apr 2009, Andrew Morton wrote: > > > > * smp_call_function_many(): Run a function on a set of other CPUs. > > "other". It refuses to call the function on *this* CPU. Tricky. .. Argh. And totally different from all the other smp_call_function's. In smp_call_function_single(), for example, we literally test if (cpu == this_cpu) { local_irq_save(flags); func(info); local_irq_restore(flags); } else { .. do the cross-call .. so I think this is just smp_call_function_many() breakage. In fact, right now the PPC flush_tlb_page() does that insane dance just because of this issue. So yes, there are a few current users, and they seem to dislike the bad semantics (the kvm code doesn't care). Duh duh duh. Linus -- 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/