diff options
author | Fabian Frederick <fabf@skynet.be> | 2019-07-16 16:28:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-16 19:23:23 -0700 |
commit | 79a0d65e77ed5e9081492848a1b936d19cdfbb0f (patch) | |
tree | 5c6fe68f2101d9af8d3cbbc8f10c3f2f37f6b990 | |
parent | 6dc280ebeed2c96a2fb933103dafe655a922b9c1 (diff) | |
download | linux-stable-79a0d65e77ed5e9081492848a1b936d19cdfbb0f.tar.gz linux-stable-79a0d65e77ed5e9081492848a1b936d19cdfbb0f.tar.bz2 linux-stable-79a0d65e77ed5e9081492848a1b936d19cdfbb0f.zip |
coda: destroy mutex in put_super()
We can safely destroy vc_mutex at the end of umount process.
Link: http://lkml.kernel.org/r/f436f68908c467c5663bc6a9251b52cd7b95d2a5.1558117389.git.jaharkes@cs.cmu.edu
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Mikko Rapeli <mikko.rapeli@iki.fi>
Cc: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Yann Droneaud <ydroneaud@opteya.com>
Cc: Zhouyang Jia <jiazhouyang09@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/coda/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index 96d832ed23b5..321f56e487cb 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c @@ -236,6 +236,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"); } |