Thread (33 messages) 33 messages, 6 authors, 2020-05-04

Re: [PATCH v3 4/6] blktrace: fix debugfs use after free

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2020-04-29 12:57:32
Also in: linux-fsdevel, linux-mm, lkml

On Wed, Apr 29, 2020 at 12:21:52PM +0000, Luis Chamberlain wrote:
On Wed, Apr 29, 2020 at 05:04:06AM -0700, Christoph Hellwig wrote:
quoted
On Wed, Apr 29, 2020 at 12:02:30PM +0000, Luis Chamberlain wrote:
quoted
quoted
Err, that function is static and has two callers.
Yes but that is to make it easier to look for who is creating the
debugfs_dir for either the request_queue or partition. I'll export
blk_debugfs_root and we'll open code all this.
No, please not.  exported variables are usually a bad idea.  Just
skip the somewhat pointless trivial static function.
Alrighty. It has me thinking we might want to only export those symbols
to a specific namespace. Thoughts, preferences?

BLOCK_GENHD_PRIVATE ?
That's a nice add-on issue after this is fixed.  As Christoph and I
pointed out, you have _less_ code in the file if you remove the static
wrapper function.  Do that now and then worry about symbol namespaces
please.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help