The patch titled Subject: procfs-improve-scaling-in-proc-v5 has been removed from the -mm tree. Its filename was procfs-improve-scaling-in-proc-v5.patch This patch was dropped because other changes were merged, which wrecked this patch ------------------------------------------------------ From: Nathan Zimmer <nzimmer@xxxxxxx> Subject: procfs-improve-scaling-in-proc-v5 v5: Corrected some warnings from sparce including the supplied by Sasha. Signed-off-by: Nathan Zimmer <nzimmer@xxxxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Cc: Eric Dumazet <eric.dumazet@xxxxxxxxx> Cc: Alexander Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/inode.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff -puN fs/proc/inode.c~procfs-improve-scaling-in-proc-v5 fs/proc/inode.c --- a/fs/proc/inode.c~procfs-improve-scaling-in-proc-v5 +++ a/fs/proc/inode.c @@ -284,7 +284,7 @@ static long proc_reg_compat_ioctl(struct return rv; } atomic_inc(&pde->pde_users); - compat_ioctl = pde->proc_fops->compat_ioctl; + compat_ioctl = fops->compat_ioctl; rcu_read_unlock(); if (compat_ioctl) @@ -309,7 +309,7 @@ static int proc_reg_mmap(struct file *fi return rv; } atomic_inc(&pde->pde_users); - mmap = pde->proc_fops->mmap; + mmap = fops->mmap; rcu_read_unlock(); if (mmap) @@ -352,7 +352,7 @@ static int proc_reg_open(struct inode *i atomic_inc(&pde->pde_users); open = fops->open; release = fops->release; - rcu_read_lock(); + rcu_read_unlock(); if (open) rv = open(inode, file); @@ -400,6 +400,7 @@ static int proc_reg_release(struct inode rcu_read_lock(); fops = rcu_dereference(pde->proc_fops); if (!fops) { + rcu_read_unlock(); /* * Can't simply exit, __fput() will think that everything is OK, * and move on to freeing struct file. remove_proc_entry() will @@ -464,6 +465,7 @@ static const struct file_operations proc struct inode *proc_get_inode(struct super_block *sb, struct proc_dir_entry *de) { struct inode *inode = new_inode_pseudo(sb); + const struct file_operations *fops; if (inode) { inode->i_ino = de->low_ino; @@ -481,19 +483,22 @@ struct inode *proc_get_inode(struct supe set_nlink(inode, de->nlink); if (de->proc_iops) inode->i_op = de->proc_iops; - if (de->proc_fops) { + rcu_read_lock(); + fops = rcu_dereference(de->proc_fops); + if (fops) { if (S_ISREG(inode->i_mode)) { #ifdef CONFIG_COMPAT - if (!de->proc_fops->compat_ioctl) + if (!fops->compat_ioctl) inode->i_fop = &proc_reg_file_ops_no_compat; else #endif inode->i_fop = &proc_reg_file_ops; } else { - inode->i_fop = de->proc_fops; + inode->i_fop = fops; } } + rcu_read_unlock(); } else pde_put(de); return inode; _ Patches currently in -mm which might be from nzimmer@xxxxxxx are linux-next.patch timer_list-split-timer_list_show_tickdevices.patch timer_list-convert-timer-list-to-be-a-proper-seq_file.patch timer_list-convert-timer-list-to-be-a-proper-seq_file-v5.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html