commit | b49e084d8c7df1632bb2b94ae1a21c8a4cf2d8a4 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@primarydata.com> | Tue Jul 29 21:34:11 2014 -0400 |
committer | J. Bruce Fields <bfields@redhat.com> | Thu Jul 31 14:19:50 2014 -0400 |
tree | 63cdd1f2ed4f02423ff4cec524a2d07bdd75ea55 | |
parent | 4770d722014b99e5438c0d1dc44db31ac4547af1 [diff] |
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>