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:
parent
f7cc02b871
commit
da47c19e5c
4 changed files with 70 additions and 50 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue