From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753055Ab2D2OOk (ORCPT ); Sun, 29 Apr 2012 10:14:40 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:63684 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751561Ab2D2OOi (ORCPT ); Sun, 29 Apr 2012 10:14:38 -0400 MIME-Version: 1.0 In-Reply-To: <1335708011.28106.245.camel@gandalf.stny.rr.com> References: <1335681937-3715-1-git-send-email-levinsasha928@gmail.com> <1335708011.28106.245.camel@gandalf.stny.rr.com> From: Sasha Levin Date: Sun, 29 Apr 2012 16:14:16 +0200 Message-ID: Subject: Re: [PATCH 01/14] sysctl: provide callback for write into ctl_table entry To: Steven Rostedt Cc: "Eric W. Biederman" , viro@zeniv.linux.org.uk, fweisbec@gmail.com, mingo@redhat.com, a.p.zijlstra@chello.nl, paulus@samba.org, acme@ghostprotocols.net, james.l.morris@oracle.com, akpm@linux-foundation.org, tglx@linutronix.de, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 29, 2012 at 4:00 PM, Steven Rostedt wrote: > On Sun, 2012-04-29 at 14:07 +0200, Sasha Levin wrote: >> On Sun, Apr 29, 2012 at 10:22 AM, Eric W. Biederman > >> Exactly twp of the patches (out of 14) are taking updates out of >> locks. I'm quite sure that doing that in the ftrace case is perfectly >> fine, and I'll take a second look at the sched-rt one since there >> indeed might be a race caused due to the patch that I've missed. > > The update of ftrace_enable must be done under the ftrace_lock mutex. > With the exception of ftrace_kill() which is a one shot deal that kills > ftrace updates until a reboot. Understood. A fix for that could be having the sysctl modifying a different var, and having ftrace_enabled from that under a lock, but I'm not sure if it's worth the work for the cleanup.