]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.fixes/ocfs2-dlm-use-ast_lock-to-protect-ast_list.patch
Reenabled linux-xen and xen-image build
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / ocfs2-dlm-use-ast_lock-to-protect-ast_list.patch
CommitLineData
00e5a55c
BS
1From: Sunil Mushran <sunil.mushran@oracle.com>
2Date: Tue, 3 Feb 2009 12:37:15 -0800
3Subject: [PATCH] ocfs2/dlm: Use ast_lock to protect ast_list
4Patch-mainline: 2.6.29
5
6The code was using dlm->spinlock instead of dlm->ast_lock to protect the
7ast_list. This patch fixes the issue.
8
9Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
10Acked-by: Joel Becker <joel.becker@oracle.com>
11Signed-off-by: Mark Fasheh <mfasheh@suse.com>
12---
13 fs/ocfs2/dlm/dlmunlock.c | 4 ++--
14 1 files changed, 2 insertions(+), 2 deletions(-)
15
16Index: linux-2.6.27-sle11_ocfs2_update2/fs/ocfs2/dlm/dlmunlock.c
17===================================================================
18--- linux-2.6.27-sle11_ocfs2_update2.orig/fs/ocfs2/dlm/dlmunlock.c
19+++ linux-2.6.27-sle11_ocfs2_update2/fs/ocfs2/dlm/dlmunlock.c
20@@ -117,11 +117,11 @@ static enum dlm_status dlmunlock_common(
21 else
22 BUG_ON(res->owner == dlm->node_num);
23
24- spin_lock(&dlm->spinlock);
25+ spin_lock(&dlm->ast_lock);
26 /* We want to be sure that we're not freeing a lock
27 * that still has AST's pending... */
28 in_use = !list_empty(&lock->ast_list);
29- spin_unlock(&dlm->spinlock);
30+ spin_unlock(&dlm->ast_lock);
31 if (in_use) {
32 mlog(ML_ERROR, "lockres %.*s: Someone is calling dlmunlock "
33 "while waiting for an ast!", res->lockname.len,