Commit 6e20adb2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] unlock_buffer() needs a barrier

From: Chris Mason <mason@suse.com>

unlock_buffer() needs a barrier before the waitqueue_active() optimisation.
parent f76a4338
......@@ -91,6 +91,7 @@ void wake_up_buffer(struct buffer_head *bh)
{
wait_queue_head_t *wq = bh_waitq_head(bh);
smp_mb();
if (waitqueue_active(wq))
wake_up_all(wq);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment