Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757584AbYB0N1e (ORCPT ); Wed, 27 Feb 2008 08:27:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751509AbYB0N10 (ORCPT ); Wed, 27 Feb 2008 08:27:26 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:45198 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751295AbYB0N1Z (ORCPT ); Wed, 27 Feb 2008 08:27:25 -0500 Date: Wed, 27 Feb 2008 14:27:13 +0100 From: Ingo Molnar To: Nick Piggin Cc: Andi Kleen , Linux Kernel Mailing List , linux-arch@vger.kernel.org Subject: Re: [rfc][patch] x86-64 new smp_call_function design Message-ID: <20080227132713.GA13681@elte.hu> References: <20080227124217.GA1340@wotan.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080227124217.GA1340@wotan.suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1039 Lines: 38 * Nick Piggin wrote: > This isn't finished yet, however I'd just like to ask for comments. looks really interesting! only one fundamental observation: > +struct call_data { > + spinlock_t lock; > + struct list_head list; > void (*func) (void *info); > void *info; > + unsigned int flags; > + unsigned int refs; > + cpumask_t cpumask; > + struct rcu_head rcu_head; > }; > +struct call_single_data { > + struct list_head list; > + void (*func) (void *info); > + void *info; > + unsigned int flags; > +}; the two structures are quite similar in size and role - why not have a type field and handle them largely together? I think we should try to preserve a single queue and a single vector - that would remove a number of ugly special-cases from the patch. Ingo -- 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/