]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd4: fix struct file leak
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 2 Mar 2011 23:01:35 +0000 (18:01 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Mar 2011 19:00:21 +0000 (12:00 -0700)
commit692f0703b01ec1d7f367a30c01f28f246bf30624
treed52536ac5c0effa0e9afae2ae600e8b2876074e1
parentd7e18902cd8c5c45fa170d76cf4b90f74743d054
nfsd4: fix struct file leak

commit 0997b173609b9229ece28941c118a2a9b278796e upstream.

Make sure we properly reference count the struct files that a lock
depends on, and release them when the lock stateid is released.

This fixes a major leak of struct files when using locking over nfsv4.

Reported-by: Rick Koshi <nfs-bug-report@more-right-rudder.com>
Tested-by: Ivo Přikryl <prikryl@eurosat.cz>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfs4state.c