Coda: replace BKL with mutex

Replace the BKL with a mutex to protect the venus_comm structure which
binds the mountpoint with the character device and holds the upcall
queues.

Signed-off-by: Yoshihisa Abe <yoshiabe@cs.cmu.edu>
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Yoshihisa Abe 2010-10-25 02:03:46 -04:00 committed by Linus Torvalds
commit da47c19e5c
4 changed files with 70 additions and 50 deletions

View file

@ -8,6 +8,7 @@
#ifdef __KERNEL__
#include <linux/backing-dev.h>
#include <linux/mutex.h>
struct kstatfs;
@ -20,6 +21,7 @@ struct venus_comm {
int vc_inuse;
struct super_block *vc_sb;
struct backing_dev_info bdi;
struct mutex vc_mutex;
};