From: Trond Myklebust Date: Sun, 4 Jun 2006 09:51:37 +0000 (-0700) Subject: [PATCH] fs/namei.c: Call to file_permission() under a spinlock in do_lookup_path() X-Git-Tag: v2.6.17-rc6~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d09bb627d2470299dfb1af0e6d27fb4aece9196;p=pandora-kernel.git [PATCH] fs/namei.c: Call to file_permission() under a spinlock in do_lookup_path() From: Trond Myklebust We're presently running lock_kernel() under fs_lock via nfs's ->permission handler. That's a ranking bug and sometimes a sleep-in-spinlock bug. This problem was introduced in the openat() patchset. We should not need to hold the current->fs->lock for a codepath that doesn't use current->fs. [vsu@altlinux.ru: fix error path] Signed-off-by: Trond Myklebust Cc: Al Viro Signed-off-by: Sergey Vlasov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed