[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-10-28 16:25:09.000000000 +0400 +++ linux-kj/kernel/module.c 2005-10-28 16:30:12.000000000 +0400 @@ -563,7 +563,7 @@ static void wait_for_zero_refcount(struc break; schedule(); } - current->state = TASK_RUNNING; + __set_current_state(TASK_RUNNING); down(&module_mutex); }