X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Fpatches%2Fsuse-2.6.27.31%2Fpatches.fixes%2Focfs2-dlm-use-ast_lock-to-protect-ast_list.patch;fp=src%2Fpatches%2Fsuse-2.6.27.31%2Fpatches.fixes%2Focfs2-dlm-use-ast_lock-to-protect-ast_list.patch;h=456455f0456477033a1e091555d09037819c307b;hp=0000000000000000000000000000000000000000;hb=2cb7cef9f877c88c82c959e2944ff02a12d068fa;hpb=836f873377e58243cc856caa0586954efff79185 diff --git a/src/patches/suse-2.6.27.31/patches.fixes/ocfs2-dlm-use-ast_lock-to-protect-ast_list.patch b/src/patches/suse-2.6.27.31/patches.fixes/ocfs2-dlm-use-ast_lock-to-protect-ast_list.patch new file mode 100644 index 000000000..456455f04 --- /dev/null +++ b/src/patches/suse-2.6.27.31/patches.fixes/ocfs2-dlm-use-ast_lock-to-protect-ast_list.patch @@ -0,0 +1,33 @@ +From: Sunil Mushran +Date: Tue, 3 Feb 2009 12:37:15 -0800 +Subject: [PATCH] ocfs2/dlm: Use ast_lock to protect ast_list +Patch-mainline: 2.6.29 + +The code was using dlm->spinlock instead of dlm->ast_lock to protect the +ast_list. This patch fixes the issue. + +Signed-off-by: Sunil Mushran +Acked-by: Joel Becker +Signed-off-by: Mark Fasheh +--- + fs/ocfs2/dlm/dlmunlock.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +Index: linux-2.6.27-sle11_ocfs2_update2/fs/ocfs2/dlm/dlmunlock.c +=================================================================== +--- linux-2.6.27-sle11_ocfs2_update2.orig/fs/ocfs2/dlm/dlmunlock.c ++++ linux-2.6.27-sle11_ocfs2_update2/fs/ocfs2/dlm/dlmunlock.c +@@ -117,11 +117,11 @@ static enum dlm_status dlmunlock_common( + else + BUG_ON(res->owner == dlm->node_num); + +- spin_lock(&dlm->spinlock); ++ spin_lock(&dlm->ast_lock); + /* We want to be sure that we're not freeing a lock + * that still has AST's pending... */ + in_use = !list_empty(&lock->ast_list); +- spin_unlock(&dlm->spinlock); ++ spin_unlock(&dlm->ast_lock); + if (in_use) { + mlog(ML_ERROR, "lockres %.*s: Someone is calling dlmunlock " + "while waiting for an ast!", res->lockname.len,