diff options
author | Linus Torvalds | 2008-07-08 21:48:26 -0700 |
---|---|---|
committer | Linus Torvalds | 2008-07-08 21:48:26 -0700 |
commit | b72e9ebe7efa5754aa53bbdb0040a2d6eeb34db3 (patch) | |
tree | ac9ae8efb9109a17e3633409aaa245100f97c425 /fs | |
parent | ba0fc709e197415aadd46b9ec208dc4abaa21edd (diff) | |
parent | 18c6ac383f3e46cfce08d0bf972705852a4e1268 (diff) |
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
[PATCH] ocfs2/dlm: Fixes oops in dlm_new_lockres()
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/dlm/dlmmaster.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index efc015c6128a..44f87caf3683 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c @@ -606,7 +606,9 @@ static void dlm_init_lockres(struct dlm_ctxt *dlm, res->last_used = 0; + spin_lock(&dlm->spinlock); list_add_tail(&res->tracking, &dlm->tracking_list); + spin_unlock(&dlm->spinlock); memset(res->lvb, 0, DLM_LVB_LEN); memset(res->refmap, 0, sizeof(res->refmap)); |