[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 +++ linux-kj/kernel/module.c @@ -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); }