[PATCH] kernel/futex.c: Uneeded memory barrier

From: Felipe W Damasio
Date: Fri Sep 12 2003 - 13:20:13 EST


Hi Rusty,

Patch against 2.6-test5.

Kills an unneeded set_current_state after schedule_timeout, since it already guarantees that the task will be TASK_RUNNING.

Also, when setting the state to TASK_RUNNING, isn't that memory barrier unneeded? Patch removes this memory barrier too.

If it looks good, please consider applying.

Thanks.

Felipe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/