tmp_suning_uos_patched/fs/nfs
Trond Myklebust d49f042aee NFSv4: Fix state reference counting in _nfs4_opendata_reclaim_to_nfs4_state
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'.

Cc: stable@vger.kernel.org # 3.7.x: a43ec98b72: NFSv4: don't fail on missing
Cc: stable@vger.kernel.org # 3.7.x
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2013-10-28 14:57:12 -04:00
..
blocklayout
objlayout
cache_lib.c
cache_lib.h
callback_proc.c
callback_xdr.c
callback.c
callback.h
client.c NFSv4: Ensure that we disable the resend timeout for NFSv4 2013-10-01 18:22:11 -04:00
delegation.c
delegation.h
dir.c
direct.c
dns_resolve.c
dns_resolve.h
file.c
fscache-index.c
fscache.c
fscache.h
getroot.c
idmap.c
inode.c
internal.h
iostat.h
Kconfig
Makefile
mount_clnt.c
namespace.c
netns.h
nfs2super.c
nfs2xdr.c
nfs3acl.c
nfs3client.c
nfs3proc.c
nfs3super.c
nfs3xdr.c
nfs4_fs.h
nfs4client.c NFSv4: Ensure that we disable the resend timeout for NFSv4 2013-10-01 18:22:11 -04:00
nfs4file.c
nfs4filelayout.c
nfs4filelayout.h
nfs4filelayoutdev.c NFSv4.1: Ensure memory ordering between nfs4_ds_connect and nfs4_fl_prepare_ds 2013-09-29 15:58:35 -04:00
nfs4getroot.c
nfs4namespace.c
nfs4proc.c NFSv4: Fix state reference counting in _nfs4_opendata_reclaim_to_nfs4_state 2013-10-28 14:57:12 -04:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c NFSv4 Remove zeroing state kern warnings 2013-10-28 14:28:53 -04:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h
nfs4xdr.c
nfs.h
nfsroot.c
nfstrace.c
nfstrace.h
pagelist.c
pnfs_dev.c
pnfs.c
pnfs.h
proc.c
read.c
super.c nfs: fix handling of invalid mount options in nfs_remount 2013-10-28 14:35:07 -04:00
symlink.c
sysctl.c
unlink.c
write.c