From ee45813457e7df50f9871afc31ecc7a7a064ec21 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 23 Oct 2006 15:59:57 +0000 Subject: [PATCH] dynlocks: fix assertion that does not take read-locking into account. --- lustre/kernel_patches/patches/dynamic-locks-2.6.9.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/kernel_patches/patches/dynamic-locks-2.6.9.patch b/lustre/kernel_patches/patches/dynamic-locks-2.6.9.patch index 61b6f12..5928ea8 100644 --- a/lustre/kernel_patches/patches/dynamic-locks-2.6.9.patch +++ b/lustre/kernel_patches/patches/dynamic-locks-2.6.9.patch @@ -255,7 +255,7 @@ Index: linux/lib/dynlocks.c + BUG_ON(hl == NULL); + BUG_ON(dl->dl_magic != DYNLOCK_LIST_MAGIC); + BUG_ON(hl->dl_magic != DYNLOCK_MAGIC); -+ BUG_ON(current->pid != hl->dl_pid); ++ BUG_ON(hl->dl_writers != 0 && current->pid != hl->dl_pid); + + spin_lock(&dl->dl_list_lock); + if (hl->dl_writers) { -- 1.8.3.1