nfsd: do filp_close in sc_free callback for lock stateids
authorJeff Layton <jlayton@primarydata.com>
Wed, 30 Jul 2014 01:34:11 +0000 (21:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 31 Jul 2014 18:19:50 +0000 (14:19 -0400)
commitb49e084d8c7df1632bb2b94ae1a21c8a4cf2d8a4
tree63cdd1f2ed4f02423ff4cec524a2d07bdd75ea55
parent4770d722014b99e5438c0d1dc44db31ac4547af1
nfsd: do filp_close in sc_free callback for lock stateids

Releasing locks when we unhash the stateid instead of doing so only when
the stateid is actually released will be problematic in later patches
when we need to protect the unhashing with spinlocks. Move it into the
sc_free operation instead.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c