+ aoe-create-and-destroy-debugfs-directory-for-aoe.patch added to -mm tree
Subsystems (2)
Subject: + aoe-create-and-destroy-debugfs-directory-for-aoe.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Fri, 26 Jul 2013 13:36:04 -0700
The patch titled
Subject: aoe: create and destroy debugfs directory for aoe
has been added to the -mm tree. Its filename is
aoe-create-and-destroy-debugfs-directory-for-aoe.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/aoe-create-and-destroy-debugfs-directory-for-aoe.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/aoe-create-and-destroy-debugfs-directory-for-aoe.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Ed Cashin <[email protected]>
Subject: aoe: create and destroy debugfs directory for aoe
This series adds the debugging information that the coraid.com-distributed aoe driver exports via sysfs, but instead of sysfs, it uses debugfs.
With these patches applied, even without AoE targets on the network, KEDR reports new possible memory leaks, but these are from callers outside the aoe driver that have used aoe_devnode to get the name of the character devices through the aoe_class->devnode callback, and I believe they're responsible for freeing that memory.
This patch:
Create and destroy the debugfs directory.
---
drivers/block/aoe/aoeblk.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/block/aoe/aoeblk.c renamed from drivers/block/aoe/aoeblk.c~aoe-create-and-destroy-debugfs-directory-for-aoe +4 -0
@@ -17,11 +17,13 @@#include <linux/mutex.h> #include <linux/export.h> #include <linux/moduleparam.h> +#include <linux/debugfs.h> #include <scsi/sg.h> #include "aoe.h" static DEFINE_MUTEX (aoeblk_mutex);static struct kmem_cache *buf_pool_cache; +static struct dentry *aoe_debugfs_dir;/* GPFS needs a larger value than the default. */ static int aoe_maxsectors;
@@ -351,6 +353,8 @@ err:void aoeblk_exit (void ) { +debugfs_remove_recursive (aoe_debugfs_dir); + aoe_debugfs_dir =NULL ;kmem_cache_destroy (buf_pool_cache); }
@@ -362,7 +366,11 @@ aoeblk_init(void) 0, 0, NULL);if (buf_pool_cache ==NULL )return -ENOMEM ;