From: Srinivas Eeda Date: Mon, 22 Mar 2010 23:50:47 +0000 (-0700) Subject: ocfs2: Fix a race in o2dlm lockres mastery X-Git-Tag: v2.6.34-rc3~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14741472a05245ed5778aa0aec055e1f920b6ef8;p=pandora-kernel.git ocfs2: Fix a race in o2dlm lockres mastery In o2dlm, the master of a lock resource keeps a map of all interested nodes. This prevents the master from purging the resource before an interested node can create a lock. A race between the mastery thread and the mastery handler allowed an interested node to discover who the master is without informing the master directly. This is easily fixed by holding the dlm spinlock a little longer in the mastery handler. Signed-off-by: Srinivas Eeda Signed-off-by: Joel Becker --- Reading git-diff-tree failed