diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-26 12:06:17 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-08-07 15:13:17 -0400 |
commit | 5e11934d13c9a3bcb0cadad6c7a7de5c32660422 (patch) | |
tree | 639e5660e9081bc16afccf0c509ff41c413b483d /fs/nfs/nfs4state.c | |
parent | b247bbf1da69ce376aa1ceb8057331214589e366 (diff) | |
download | op-kernel-dev-5e11934d13c9a3bcb0cadad6c7a7de5c32660422.zip op-kernel-dev-5e11934d13c9a3bcb0cadad6c7a7de5c32660422.tar.gz |
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 <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
0 files changed, 0 insertions, 0 deletions