commit | 3c1c995cc2e49f6f7504586ad07c5d80c6aa3301 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@primarydata.com> | Tue Jul 29 21:34:39 2014 -0400 |
committer | J. Bruce Fields <bfields@redhat.com> | Thu Jul 31 14:20:28 2014 -0400 |
tree | 213d7c9e1f18da99562a746711035d290436f91d | |
parent | a819ecc1bbb0c795184c80afeec0e7a6ef508ef5 [diff] |
nfsd: optimize destroy_lockowner cl_lock thrashing Reduce the cl_lock trashing in destroy_lockowner. Unhash all of the lockstateids on the lockowner's list. Put the reference under the lock and see if it was the last one. If so, then add it to a private list to be destroyed after we drop the lock. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>