[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-09-03 14:20:05.000000000 +0400 +++ linux-kj/kernel/module.c 2005-09-03 14:32:58.000000000 +0400 @@ -562,7 +562,7 @@ static void wait_for_zero_refcount(struc break; schedule(); } - current->state = TASK_RUNNING; + __set_current_state(TASK_RUNNING); down(&module_mutex); }