That's still racy. There are several hundred instructions from the
time the timeout is calculated until the kernel actually uses the
timeout to calculate an offset relative to jiffies, during which a
task switch may occur. I suppose that this could be handled via a
separate timer interface (we should probably implement posix timers
anyways). I can see the arguments, and I guess it's easier to just
revert it.
-ben
-- "You will be reincarnated as a toad; and you will be much happier." - 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/