aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/proc_fs.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 /include/linux/proc_fs.h
parentdeal with races between remove_proc_entry() and proc_reg_release() (diff)
downloadwireguard-linux-05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f.tar.xz
wireguard-linux-05c0ae21c034a6f7c6f4c0c63a31167ebb4b061f.zip
try a saner locking for pde_opener...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r--include/linux/proc_fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 947ae7eb63ef..2781e498f709 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -65,7 +65,7 @@ struct proc_dir_entry {
void *data;
read_proc_t *read_proc;
atomic_t count; /* use count */
- int pde_users; /* number of callers into module in progress; */
+ atomic_t in_use; /* number of callers into module in progress; */
/* negative -> it's going away RSN */
struct completion *pde_unload_completion;
struct list_head pde_openers; /* who did ->open, but not ->release */