[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200211110126.GC8560@willie-the-truck>
Date: Tue, 11 Feb 2020 11:01:27 +0000
From: Will Deacon <will@...nel.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: "Theodore Y. Ts'o" <tytso@....edu>,
Jonathan Corbet <corbet@....net>,
Saravana Kannan <saravanak@...gle.com>,
Jason Baron <jbaron@...mai.com>, linux-kernel@...r.kernel.org,
kernel-team@...roid.com, Randy Dunlap <rdunlap@...radead.org>
Subject: Re: [PATCH v6] dynamic_debug: allow to work if debugfs is disabled
On Mon, Feb 10, 2020 at 01:11:42PM -0800, Greg Kroah-Hartman wrote:
> With the realization that having debugfs enabled on "production" systems
> is generally not a good idea, debugfs is being disabled from more and
> more platforms over time. However, the functionality of dynamic
> debugging still is needed at times, and since it relies on debugfs for
> its user api, having debugfs disabled also forces dynamic debug to be
> disabled.
>
> To get around this, also create the "control" file for dynamic_debug in
> procfs. This allows people turn on debugging as needed at runtime for
> individual driverfs and subsystems.
>
> Reported-by: many different companies
> Cc: Jason Baron <jbaron@...mai.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> ---
> v6: fix up Kconfig help, it was a bit incorrect,thanks to Saravana for
> the review.
> v5: as many people asked for it, now enable the control file in both
> debugfs and procfs at the same time.
The 'ddebug_lock' mutex looks like it resolves all of the races here, so:
Acked-by: Will Deacon <will@...nel.org>
Will
Powered by blists - more mailing lists