From: David Teigland Date: Fri, 5 Apr 2013 09:57:15 +0000 (+0100) Subject: dlm: avoid unnecessary posix unlock X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~97^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=900083183959107159f962b83b3b439d53796499;p=pandora-kernel.git dlm: avoid unnecessary posix unlock When the kernel clears flocks/plocks during close, it calls posix unlock when there are flocks but no posix locks. Without this patch, that unnecessary posix unlock is passed to userland (dlm_controld), across the cluster, and back to the kernel. This can create a lot of plock activity, even when no posix locks had been used. This patch copies the nfs approach, and skips the full posix unlock if there is no plock found during the vfs unlock phase. Signed-off-by: David Teigland --- Reading git-diff-tree failed