diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-09-27 15:51:20 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-09-29 14:41:36 -0400 |
commit | 5c78f58e2d5cef65c255a556184f1f43c8d84c84 (patch) | |
tree | 64d9e8274e40343851e38a9ceadbe9d17e8cce2c /fs/nfs/dir.c | |
parent | dfb4f309830359352539919f23accc59a20a3758 (diff) | |
download | lwn-5c78f58e2d5cef65c255a556184f1f43c8d84c84.tar.gz lwn-5c78f58e2d5cef65c255a556184f1f43c8d84c84.zip |
NFS: Really fix put_nfs_open_context()
In nfs_open_revalidate(), if the open_context() call returns an inode that
is not the same as dentry->d_inode, then we will call
put_nfs_open_context() with a valid dentry->d_inode, but without the
context being part of the nfsi->open_files list.
In this case too, we want to just skip the list removal, but we do want to
call the ->close_context() callback in order to close the NFSv4 state.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/nfs/dir.c')
0 files changed, 0 insertions, 0 deletions