diff mbox series

[17/22] coda: destroy mutex in put_super()

Message ID dd182a3c9fe1c9bb8f0792a729ce487748892b9b.1553098576.git.jaharkes@cs.cmu.edu (mailing list archive)
State New, archived
Headers show
Series Coda updates for linux-5.1 | expand

Commit Message

Jan Harkes March 20, 2019, 4:45 p.m. UTC
From: Fabian Frederick <fabf@skynet.be>

we can safely destroy vc_mutex at the end of umount process.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
---
 fs/coda/inode.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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