From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Mon, 18 Jun 2007 15:54:28 +0100 Subject: [Cluster-devel] [PATCH 2/4] [DLM] fix a couple of races In-Reply-To: <1182178478593-git-send-email-swhiteho@redhat.com> References: y <11821784703600-git-send-email-swhiteho@redhat.com> <1182178478593-git-send-email-swhiteho@redhat.com> Message-ID: <11821784801162-git-send-email-swhiteho@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- fs/dlm/config.c | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: 1f692e48dd1f3fa00629c69b2e34ab35c9929b45.diff Type: text/x-patch Size: 1066 bytes Desc: not available URL: