try a saner locking for pde_opener...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2013-04-04 16:28:47 -04:00
parent ca469f35a8
commit 05c0ae21c0
3 changed files with 24 additions and 44 deletions

View File

@@ -153,8 +153,8 @@ int proc_readdir_de(struct proc_dir_entry *de, struct file *filp, void *dirent,
struct pde_opener {
struct file *file;
struct list_head lh;
int count; /* number of threads in close_pdeo() */
struct mutex mutex;
int closing;
struct completion *c;
};
ssize_t __proc_file_read(struct file *, char __user *, size_t, loff_t *);