]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
fs/proc/internal.h: fix up comment
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 6 Feb 2018 23:37:21 +0000 (15:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:43 +0000 (18:32 -0800)
Document what ->pde_unload_lock actually does.

Link: http://lkml.kernel.org/r/20180103185120.GB31849@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/internal.h

index a290a1e921a5a8c1249284122f66b9cd713de1e6..5ba317874f0d0462921f09e2496dc6c5f29662e0 100644 (file)
@@ -38,7 +38,8 @@ struct proc_dir_entry {
        atomic_t in_use;
        atomic_t count;         /* use count */
        struct list_head pde_openers;   /* who did ->open, but not ->release */
-       spinlock_t pde_unload_lock; /* proc_fops checks and pde_users bumps */
+       /* protects ->pde_openers and all struct pde_opener instances */
+       spinlock_t pde_unload_lock;
        struct completion *pde_unload_completion;
        const struct inode_operations *proc_iops;
        const struct file_operations *proc_fops;