Messages in this thread | | | Date | Sat, 28 Aug 2004 15:29:04 -0700 | From | Andrew Morton <> | Subject | Re: [2/5] consolidate bit waiting code patterns |
| |
William Lee Irwin III <wli@holomorphy.com> wrote: > > +void fastcall __wake_up_bit(wait_queue_head_t *wq, void *word, int bit) > +{ > + struct wait_bit_key key = __WAIT_BIT_KEY_INITIALIZER(word, bit); > + if (waitqueue_active(wq)) > + __wake_up(wq, TASK_INTERRUPTIBLE|TASK_UNINTERRUPTIBLE, 1, &key); > +}
The waitqueue_active() test needs a preceding barrier. Did it come from somewhere else, implicitly? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |