--- ocfs2.old/src/nm.c 2004-03-31 12:02:10.075066064 +0800 +++ ocfs2/src/nm.c 2004-03-31 12:02:09.973081568 +0800 @@ -254,6 +254,7 @@ __u64 cfg_seq_num; int which, pruned, prune_iters = 0; struct buffer_head *bh = NULL; + siginfo_t info; LOG_ENTRY (); @@ -444,6 +445,19 @@ } set_current_state (TASK_INTERRUPTIBLE); schedule_timeout (osb->hbt - j); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) + dequeue_signal_lock(current, ¤t->blocked, &info); +#else +#ifdef HAVE_NPTL + spin_lock_irq(¤t->sighand->siglock); + dequeue_signal(¤t->blocked, &info); + spin_unlock_irq(¤t->sighand->siglock); +#else + spin_lock_irq(¤t->sigmask_lock); + dequeue_signal(¤t->blocked, &info); + spin_unlock_irq(¤t->sigmask_lock); +#endif /* !HAVE_NPTL */ +#endif /* 2.4.x kernel */ } /* Flush all scheduled tasks */