From: Steven Whitehouse Date: Wed, 8 Nov 2006 15:26:54 +0000 (-0500) Subject: [GFS2] Fix page lock/glock deadlock X-Git-Tag: v2.6.20-rc1~145^2^2~5^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ca99501fa5422e84f18333918a503433449e2b5;p=pandora-kernel.git [GFS2] Fix page lock/glock deadlock This fixes a race between the glock and the page lock encountered during truncate in gfs2_readpage and gfs2_prepare_write. The gfs2_readpages function doesn't need the same fix since it only uses a try lock anyway, so it will fail back to gfs2_readpage in the case of a potential deadlock. This bug was spotted by Russell Cattelan. Cc: Russell Cattelan Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed