From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753887AbYHKBY2 (ORCPT ); Sun, 10 Aug 2008 21:24:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752833AbYHKBYT (ORCPT ); Sun, 10 Aug 2008 21:24:19 -0400 Received: from mga03.intel.com ([143.182.124.21]:55092 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753391AbYHKBYT (ORCPT ); Sun, 10 Aug 2008 21:24:19 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.31,341,1215414000"; d="scan'208";a="32129873" Subject: Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore From: Huang Ying To: Steven Rostedt Cc: Vivek Goyal , "Eric W. Biederman" , Pavel Machek , nigel@nigel.suspend2.net, "Rafael J. Wysocki" , Andrew Morton , mingo@elte.hu, Linus Torvalds , linux-kernel@vger.kernel.org, Kexec Mailing List In-Reply-To: References: <1218178368.22039.80.camel@caritas-dev.intel.com> <20080808141700.GF3840@redhat.com> Content-Type: text/plain Date: Mon, 11 Aug 2008 09:22:21 +0800 Message-Id: <1218417741.30464.23.camel@caritas-dev.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Steven, On Fri, 2008-08-08 at 10:30 -0400, Steven Rostedt wrote: [...] > The only problem with this approach is what happens if the user changes > the enabled in between these two calls. This would make ftrace > inconsistent. > > I have a patch from the -rt tree that handles what you want. It is > attached below. Not sure how well it will apply to mainline. > > I really need to go through the rt patch set and start submitting a bunch > of clean-up/fixes to mainline. We've been meaning to do it, just have been > distracted :-( Your version is better in general sense. Thank you very much! But in this specific situation of kexec/kjump. The execution environment is that other CPUs are disabled, local irq is disabled, and it is not permitted to switch to other process. But it is safe and sufficient to use non-locked version here. So to satisfy both demands, I think it is better to provide both version, locked and non-locked. What do you think about that? Best Regards, Huang Ying