The patch titled fs/namei.c: Call to file_permission() under a spinlock in do_lookup_path() has been added to the -mm tree. Its filename is fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: fs/namei.c: Call to file_permission() under a spinlock in do_lookup_path() From: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> We should in any case not need to hold the current->fs->lock for a codepath that doesn't use current->fs. Signed-off-by: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/namei.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff -puN fs/namei.c~fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path fs/namei.c --- 25/fs/namei.c~fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path Thu Jun 1 15:18:36 2006 +++ 25-akpm/fs/namei.c Thu Jun 1 15:18:36 2006 @@ -1080,8 +1080,8 @@ static int fastcall do_path_lookup(int d nd->flags = flags; nd->depth = 0; - read_lock(¤t->fs->lock); if (*name=='/') { + read_lock(¤t->fs->lock); if (current->fs->altroot && !(nd->flags & LOOKUP_NOALT)) { nd->mnt = mntget(current->fs->altrootmnt); nd->dentry = dget(current->fs->altroot); @@ -1092,9 +1092,12 @@ static int fastcall do_path_lookup(int d } nd->mnt = mntget(current->fs->rootmnt); nd->dentry = dget(current->fs->root); + read_unlock(¤t->fs->lock); } else if (dfd == AT_FDCWD) { + read_lock(¤t->fs->lock); nd->mnt = mntget(current->fs->pwdmnt); nd->dentry = dget(current->fs->pwd); + read_unlock(¤t->fs->lock); } else { struct dentry *dentry; @@ -1118,7 +1121,6 @@ static int fastcall do_path_lookup(int d fput_light(file, fput_needed); } - read_unlock(¤t->fs->lock); current->total_link_count = 0; retval = link_path_walk(name, nd); out: _ Patches currently in -mm which might be from Trond.Myklebust@xxxxxxxxxx are fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path.patch git-nfs.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