From: Steven Whitehouse Date: Wed, 9 Mar 2011 10:58:04 +0000 (+0000) Subject: GFS2: Fix glock deallocation race X-Git-Tag: v2.6.39-rc1~488^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc0e38dae645f65424d1fb5d2a938aab8ce48a58;p=pandora-kernel.git GFS2: Fix glock deallocation race This patch fixes a race in deallocating glocks which was introduced in the RCU glock patch. We need to ensure that the glock count is kept correct even in the case that there is a race to add a new glock into the hash table. Also, to avoid having to wait for an RCU grace period, the glock counter can be decremented before call_rcu() is called. Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed