summaryrefslogtreecommitdiff
path: root/arch/mips/kvm
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-28 18:57:12 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-29 19:28:03 (GMT)
commitcdebf3915aa50f87f43da89415de6543cfea5f66 (patch)
tree82aabf7e1aa7f2b0effec471294a8de95cb8d3ea /arch/mips/kvm
parent502bb2cc3514ae5e0785ea18788073835c158ddd (diff)
downloadlinux-fsl-qoriq-cdebf3915aa50f87f43da89415de6543cfea5f66.tar.xz
NFSv4: Fix state reference counting in _nfs4_opendata_reclaim_to_nfs4_state
commit d49f042aeec99c5f87160bb52dd52088b1051311 upstream. Currently, if the call to nfs_refresh_inode fails, then we end up leaking a reference count, due to the call to nfs4_get_open_state. While we're at it, replace nfs4_get_open_state with a simple call to atomic_inc(); there is no need to do a full lookup of the struct nfs_state since it is passed as an argument in the struct nfs4_opendata, and is already assigned to the variable 'state'. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/kvm')
0 files changed, 0 insertions, 0 deletions