From: Eric W. Biederman We already call everything except do_proc_readlink outside of the BKL in proc_pid_followlink, and there appears to be nothing in do_proc_readlink that needs any special protection. So remove this leftover from one of the BKL cleanup efforts. Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton --- fs/proc/base.c | 2 -- 1 files changed, 2 deletions(-) diff -puN fs/proc/base.c~proc-remove-useless-bkl-in-proc_pid_readlink fs/proc/base.c --- devel/fs/proc/base.c~proc-remove-useless-bkl-in-proc_pid_readlink 2006-04-14 23:42:16.000000000 -0700 +++ devel-akpm/fs/proc/base.c 2006-04-14 23:42:16.000000000 -0700 @@ -1162,7 +1162,6 @@ static int proc_pid_readlink(struct dent struct dentry *de; struct vfsmount *mnt = NULL; - lock_kernel(); if (current->fsuid != inode->i_uid && !capable(CAP_DAC_OVERRIDE)) goto out; @@ -1178,7 +1177,6 @@ static int proc_pid_readlink(struct dent dput(de); mntput(mnt); out: - unlock_kernel(); return error; } _