summaryrefslogtreecommitdiffstats
path: root/fs/proc/internal.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-04-04 16:28:47 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 15:16:52 -0400
commit05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f (patch)
tree69c6b35347eeddc49e6ffa2188d4811ce9633c4f /fs/proc/internal.h
parentca469f35a8e9ef12571a4b80ac6d7fdc0260fb44 (diff)
downloadop-kernel-dev-05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f.zip
op-kernel-dev-05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f.tar.gz
try a saner locking for pde_opener...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r--fs/proc/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index e2fa934..46a7e2a 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -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 *);
OpenPOWER on IntegriCloud