Whamcloud - gitweb
dynlocks: fix assertion that does not take read-locking into account.
authornikita <nikita>
Mon, 23 Oct 2006 15:59:57 +0000 (15:59 +0000)
committernikita <nikita>
Mon, 23 Oct 2006 15:59:57 +0000 (15:59 +0000)
lustre/kernel_patches/patches/dynamic-locks-2.6.9.patch

index 61b6f12..5928ea8 100644 (file)
@@ -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) {