[PATCH] kernel/module.c: use __set_current_state() instead of direct assigment From: Alejandro Andres Signed-off-by: Alejandro Andres Signed-off-by: Alexey Dobriyan Index: linux-kj/kernel/module.c =================================================================== --- linux-kj.orig/kernel/module.c 2005-12-05 13:18:06.000000000 +0300 +++ linux-kj/kernel/module.c 2005-12-05 13:19:47.000000000 +0300 @@ -564,7 +564,7 @@ static void wait_for_zero_refcount(struc break; schedule(); } - current->state = TASK_RUNNING; + __set_current_state(TASK_RUNNING); down(&module_mutex); }