[PATCH 2/7 linux-next] coda: destroy mutex in put_super()

2018-10-19 Thread Fabian Frederick
we can safely destroy vc_mutex at the end of umount process.

Signed-off-by: Fabian Frederick 
---
 fs/coda/inode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/coda/inode.c b/fs/coda/inode.c
index dd819c1..69bb64d 100644
--- a/fs/coda/inode.c
+++ b/fs/coda/inode.c
@@ -244,6 +244,7 @@ static void coda_put_super(struct super_block *sb)
vcp->vc_sb = NULL;
sb->s_fs_info = NULL;
mutex_unlock(>vc_mutex);
+   mutex_destroy(>vc_mutex);
 
pr_info("Bye bye.\n");
 }
-- 
2.4.11



[PATCH 2/7 linux-next] coda: destroy mutex in put_super()

2018-10-19 Thread Fabian Frederick
we can safely destroy vc_mutex at the end of umount process.

Signed-off-by: Fabian Frederick 
---
 fs/coda/inode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/coda/inode.c b/fs/coda/inode.c
index dd819c1..69bb64d 100644
--- a/fs/coda/inode.c
+++ b/fs/coda/inode.c
@@ -244,6 +244,7 @@ static void coda_put_super(struct super_block *sb)
vcp->vc_sb = NULL;
sb->s_fs_info = NULL;
mutex_unlock(>vc_mutex);
+   mutex_destroy(>vc_mutex);
 
pr_info("Bye bye.\n");
 }
-- 
2.4.11