]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: release lockowners on last unlock in 4.1 case
authorJ. Bruce Fields <bfields@redhat.com>
Sun, 7 Apr 2013 17:28:16 +0000 (13:28 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 9 Apr 2013 13:08:56 +0000 (09:08 -0400)
commitae572f1186410edb932473577335b190df91a2af
treec413f56772a69937303a3b0f6a2e8ee039fa6e14
parent2f218caf77e24a805cb91fa3cbeeac5a6e2836dd
nfsd4: release lockowners on last unlock in 4.1 case

In the 4.1 case we're supposed to release lockowners as soon as they're
no longer used.

It would probably be more efficient to reference count them, but that's
slightly fiddly due to the need to have callbacks from locks.c to take
into account lock merging and splitting.

For most cases just scanning the inode's lock list on unlock for
matching locks will be sufficient.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c