]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f5c88b4a4de84aa79ffba3883b5f3bf057adbdc
tree63cdd1f2ed4f02423ff4cec524a2d07bdd75ea55
parent52d7f40b2582a86c9af2fab3e10b1caa7c3ba877
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