summaryrefslogtreecommitdiffstats
path: root/fs/proc/internal.h
diff options
context:
space:
mode:
authorAl Viro2013-04-04 22:28:47 +0200
committerAl Viro2013-04-09 21:16:52 +0200
commit05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f (patch)
tree69c6b35347eeddc49e6ffa2188d4811ce9633c4f /fs/proc/internal.h
parentdeal with races between remove_proc_entry() and proc_reg_release() (diff)
downloadkernel-qcow2-linux-05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f.tar.gz
kernel-qcow2-linux-05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f.tar.xz
kernel-qcow2-linux-05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f.zip
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 e2fa9345a9a8..46a7e2a7b904 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 *);