NFS: Really fix put_nfs_open_context()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 27 Sep 2010 19:51:20 +0000 (15:51 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 29 Sep 2010 18:41:36 +0000 (14:41 -0400)
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>

No differences found