From: Trond Myklebust Date: Thu, 26 Jul 2007 16:06:17 +0000 (-0400) Subject: NFS: Fix put_nfs_open_context X-Git-Tag: v2.6.23-rc3~68^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e11934d13c9a3bcb0cadad6c7a7de5c32660422;p=pandora-kernel.git NFS: Fix put_nfs_open_context We need to grab the inode->i_lock atomically with the last reference put in order to remove the open context that is being freed from the nfsi->open_files list. Fix by converting the kref to a standard atomic counter and then using atomic_dec_and_lock()... Thanks to Arnd Bergmann for pointing out the problem. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed