linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] ext3: destroy sbi mutexes in put_super
@ 2014-12-27 15:01 Fabian Frederick
  2015-01-05 10:13 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-12-27 15:01 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fabian Frederick, Jan Kara, Andrew Morton, Andreas Dilger,
	linux-ext4

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
This is untested.

 fs/ext3/super.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 9b4e7d7..d4dbf3c 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -466,6 +466,8 @@ static void ext3_put_super (struct super_block * sb)
 	}
 	sb->s_fs_info = NULL;
 	kfree(sbi->s_blockgroup_lock);
+	mutex_destroy(&sbi->s_orphan_lock);
+	mutex_destroy(&sbi->s_resize_lock);
 	kfree(sbi);
 }
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1 linux-next] ext3: destroy sbi mutexes in put_super
  2014-12-27 15:01 [PATCH 1/1 linux-next] ext3: destroy sbi mutexes in put_super Fabian Frederick
@ 2015-01-05 10:13 ` Jan Kara
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2015-01-05 10:13 UTC (permalink / raw)
  To: Fabian Frederick
  Cc: linux-kernel, Jan Kara, Andrew Morton, Andreas Dilger, linux-ext4

On Sat 27-12-14 16:01:22, Fabian Frederick wrote:
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
  Thanks, I have merged the patch with somewhat updated changelog to
describe what are the visible effects of this.

								Honza
> ---
> This is untested.
> 
>  fs/ext3/super.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/fs/ext3/super.c b/fs/ext3/super.c
> index 9b4e7d7..d4dbf3c 100644
> --- a/fs/ext3/super.c
> +++ b/fs/ext3/super.c
> @@ -466,6 +466,8 @@ static void ext3_put_super (struct super_block * sb)
>  	}
>  	sb->s_fs_info = NULL;
>  	kfree(sbi->s_blockgroup_lock);
> +	mutex_destroy(&sbi->s_orphan_lock);
> +	mutex_destroy(&sbi->s_resize_lock);
>  	kfree(sbi);
>  }
>  
> -- 
> 2.1.0
> 
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-05 10:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-27 15:01 [PATCH 1/1 linux-next] ext3: destroy sbi mutexes in put_super Fabian Frederick
2015-01-05 10:13 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).