From: Satyam Sharma Date: Tue, 8 May 2007 08:18:58 +0000 (+0100) Subject: [DLM] fix a couple of races X-Git-Tag: v2.6.23-rc1~1156^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3168b0780d06ace875696f8a648d04d6089654e5;p=pandora-kernel.git [DLM] fix a couple of races Fix two races in fs/dlm/config.c: (1) Grab the configfs subsystem semaphore before calling config_group_find_obj() in get_space(). This solves a potential race between get_space() and concurrent mkdir(2) or rmdir(2). (2) Grab a reference on the found config_item _while_ holding the configfs subsystem semaphore in get_comm(), and not after it. This solves a potential race between get_comm() and concurrent rmdir(2). Signed-off-by: Satyam Sharma Signed-off-by: David Teigland Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed