From: Bob Peterson Date: Wed, 20 Aug 2014 16:44:45 +0000 (-0400) Subject: GFS2: Request demote when a "try" flock fails X-Git-Tag: fixes-for-v3.18-merge-window~113^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ddfbdd6848d496d8088b28992d257fd02e58c9d;p=pandora-kernel.git GFS2: Request demote when a "try" flock fails This patch changes the flock code so that it uses the TRY_1CB flag instead of the TRY flag on the first attempt. That forces any holding nodes to issue a dlm callback, which requests a demote of the glock. Then, if the "try" failed, it sleeps a small amount of time for the demote to occur. Then it tries again, for an increasing amount of time. Subsequent attempts to gain the "try" lock don't use "_1CB" so that only one callback is issued. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed