From: Jeff Layton Date: Wed, 30 Jul 2014 01:34:39 +0000 (-0400) Subject: nfsd: optimize destroy_lockowner cl_lock thrashing X-Git-Tag: omap-for-v3.17/fixes-against-rc2~101^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c1c995cc2e49f6f7504586ad07c5d80c6aa3301;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed