[PATCH] [DLM] fix a couple of races

2007-07-09 Thread swhiteho
From: Satyam Sharma <[EMAIL PROTECTED]> 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 confi

Re: [PATCH] DLM: fix a couple of races

2007-05-08 Thread Steven Whitehouse
Hi, Added to the GFS2 -nmw git tree, thanks. Please remember to add a Signed-off-by line for future patches - I've added it for you this time, Steve. On Fri, 2007-05-04 at 21:49 +0530, Satyam Sharma wrote: > Hi, > > There are the following two trivially-fixed races in fs/dlm/config.c: > > 1. T

Re: [PATCH] DLM: fix a couple of races

2007-05-08 Thread Steven Whitehouse
Hi, On Tue, 2007-05-08 at 09:00 +0100, Steven Whitehouse wrote: > Hi, > > Added to the GFS2 -nmw git tree, thanks. Please remember to add a > Signed-off-by line for future patches - I've added it for you this time, > > Steve. > Sorry - I just spotted that you did add a signed-off-by but git ate

Re: [PATCH] DLM: fix a couple of races

2007-05-04 Thread David Teigland
On Fri, May 04, 2007 at 09:49:45PM +0530, Satyam Sharma wrote: > Hi, > > There are the following two trivially-fixed races in fs/dlm/config.c: > > 1. The configfs subsystem semaphore must be held by the caller when > calling config_group_find_obj(). It's needed to walk the subsystem > hierarchy

[PATCH] DLM: fix a couple of races

2007-05-04 Thread Satyam Sharma
Hi, There are the following two trivially-fixed races in fs/dlm/config.c: 1. The configfs subsystem semaphore must be held by the caller when calling config_group_find_obj(). It's needed to walk the subsystem hierarchy without racing with a simultaneous mkdir(2) or rmdir(2). I looked around t