Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754182AbbFJGze (ORCPT ); Wed, 10 Jun 2015 02:55:34 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:49896 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753141AbbFJGzZ convert rfc822-to-8bit (ORCPT ); Wed, 10 Jun 2015 02:55:25 -0400 Message-ID: <1433919306.1495.55.camel@twins> Subject: Re: [PATCH 08/14] hrtimer: Allow hrtimer::function() to free the timer From: Peter Zijlstra To: Oleg Nesterov Cc: umgwanakikbuti@gmail.com, mingo@elte.hu, ktkhai@parallels.com, rostedt@goodmis.org, tglx@linutronix.de, juri.lelli@gmail.com, pang.xunlei@linaro.org, wanpeng.li@linux.intel.com, linux-kernel@vger.kernel.org Date: Wed, 10 Jun 2015 08:55:06 +0200 In-Reply-To: <20150609213318.GA12436@redhat.com> References: <20150605084836.364306429@infradead.org> <20150605085205.723058588@infradead.org> <20150607223317.GA5193@redhat.com> <20150608091417.GM19282@twins.programming.kicks-ass.net> <20150608124234.GW18673@twins.programming.kicks-ass.net> <20150609213318.GA12436@redhat.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 672 Lines: 17 On Tue, 2015-06-09 at 23:33 +0200, Oleg Nesterov wrote: > > Yes, but wmb() is cheap on x86... Perhaps we can make this code > "obviously correct" ? I'll reply to the rest a bit later; got to run some errands first. The 'problem' of course is ARM/PPC etc.. we would like to keep this generic code fast, even for the loosely ordered machines. And wmb() is certainly not cheap for them; although not as bad as a full barrier. -- 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/