From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755188AbZBQUMy (ORCPT ); Tue, 17 Feb 2009 15:12:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754005AbZBQUMn (ORCPT ); Tue, 17 Feb 2009 15:12:43 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:35749 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752044AbZBQUMn (ORCPT ); Tue, 17 Feb 2009 15:12:43 -0500 Subject: Re: [PATCH -v4] generic-ipi: remove kmalloc() From: Peter Zijlstra To: Oleg Nesterov Cc: Linus Torvalds , Nick Piggin , Jens Axboe , "Paul E. McKenney" , Ingo Molnar , Rusty Russell , Steven Rostedt , linux-kernel@vger.kernel.org In-Reply-To: <20090217200247.GA8158@redhat.com> References: <20090216163847.431174825@chello.nl> <20090216164114.433430761@chello.nl> <1234885258.4744.153.camel@laptop> <20090217172113.GA26459@redhat.com> <1234892420.4744.158.camel@laptop> <1234898958.4744.225.camel@laptop> <20090217200247.GA8158@redhat.com> Content-Type: text/plain Date: Tue, 17 Feb 2009 21:11:52 +0100 Message-Id: <1234901512.4744.230.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.25.90 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2009-02-17 at 21:02 +0100, Oleg Nesterov wrote: > Argh! Sorry-sorry-sorry. I managed to confused myself and you. > > Please return to the previous version. With this patch we do: > > func(info); > > if (!refs && wait) > csd_complete(); > > but we can't do csd_complete(), we can not be sure other CPUs > has already passed this function call. > > Of course we can add another counter, but I don't think this > worth the trouble. Eek, you're right. > As for the previous version. I am almost sure I missed something > again, but do we really need both CSD_FLAG_WAIT and CSD_FLAG_LOCK > flags? smp_call_function_many(wait => 1) can just wait for > !CSD_FLAG_LOCK. I suppose we can.