2013-07-26 02:19:59

by Eric Sandeen

[permalink] [raw]
Subject: [PATCH] destroy ext4_es_cachep on module unload

Without this, module can't be reloaded.

[ 500.521980] kmem_cache_sanity_check (ext4_extent_status): Cache name already exists.

Signed-off-by: Eric Sandeen <[email protected]>
---

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index bca26f3..59c0c03 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -5481,6 +5483,7 @@ static void __exit ext4_exit_fs(void)
kset_unregister(ext4_kset);
ext4_exit_system_zone();
ext4_exit_pageio();
+ ext4_exit_es();
}

MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others");




2013-07-26 19:22:45

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [PATCH] destroy ext4_es_cachep on module unload

On Thu, Jul 25, 2013 at 09:19:58PM -0500, Eric Sandeen wrote:
> Without this, module can't be reloaded.
>
> [ 500.521980] kmem_cache_sanity_check (ext4_extent_status): Cache name already exists.
>
> Signed-off-by: Eric Sandeen <[email protected]>

Applied, thanks.

- Ted