The spinlocks and atomic operations implied by "wake_up()" and company
make this a non-issue: a spinlock has to guarantee write ordering anyway,
otherwise it wouldn't be an effective spinlock..
So about half of your patch is unnecessary, but the latter half looks
valid.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/