Files
linux/fs/nfs
Trond Myklebust 1311157d84 NFSv4: Fix state reference counting in _nfs4_opendata_reclaim_to_nfs4_state
commit d49f042aee 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>
2013-11-29 11:11:49 -08:00
..
2013-05-07 02:16:31 -04:00
2013-04-12 15:21:36 +02:00
2012-12-06 00:30:44 +01:00
2013-03-25 12:04:11 -04:00
2012-12-20 22:19:42 +00:00
2012-10-02 08:17:02 -07:00
2012-07-30 19:06:41 -04:00
2013-02-22 23:31:31 -05:00
2012-07-30 19:06:46 -04:00
2013-02-22 23:31:31 -05:00
2012-07-30 19:06:52 -04:00
2013-02-22 23:31:31 -05:00