Skip to content
Commit 0997b173 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix struct file leak



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.

Cc: stable@kernel.org
Reported-by: default avatarRick Koshi <nfs-bug-report@more-right-rudder.com>
Tested-by: default avatarIvo Přikryl <prikryl@eurosat.cz>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 529d7b2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment