All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] kernel/module.c use __set_current_state() instead of direct
@ 2005-06-29 16:22 aLeJ
  2005-06-29 17:10 ` Nico Golde
  0 siblings, 1 reply; 2+ messages in thread
From: aLeJ @ 2005-06-29 16:22 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

Description:
Use of __set_current_state() instead of direct assigment of
current->state.

Signed-off-by: Alejandro Andres <fuzzy.alej@gmail.com>

--- linux-2.6.12.1/kernel/module.c.orig	2005-06-29 20:11:28.000000000
+0200
+++ linux-2.6.12.1/kernel/module.c	2005-06-29 20:12:02.000000000 +0200
@@ -518,7 +518,7 @@ static void wait_for_zero_refcount(struc
 			break;
 		schedule();
 	}
-	current->state = TASK_RUNNING;
+	__set_current_state(TASK_RUNNING);
 	down(&module_mutex);
 }
 



[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-29 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-29 16:22 [KJ] kernel/module.c use __set_current_state() instead of direct aLeJ
2005-06-29 17:10 ` Nico Golde

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.