]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[DLM] add new lockspace to list ealier
authorDavid Teigland <teigland@redhat.com>
Thu, 24 Aug 2006 19:47:20 +0000 (14:47 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 25 Aug 2006 14:02:53 +0000 (10:02 -0400)
commit5f88f1ea16a2fb5f125505053d1bfb7901a88c64
treee3d9ce0e01a3903556885c784f8db759c26a795e
parent5dc39fe621ead2fa2a0439a686be4df185861eae
[DLM] add new lockspace to list ealier

When a new lockspace was being created, the recoverd thread was being
started for it before the lockspace was added to the global list of
lockspaces.  The new thread was looking up the lockspace in the global
list and sometimes not finding it due to the race with the original thread
adding it to the list.  We need to add the lockspace to the global list
before starting the thread instead of after, and if the new thread can't
find the lockspace for some reason, it should return an error.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/lockspace.c
fs/dlm/recoverd.c