[patch 1/1] kernel/module.c use __set_current_state() instead of direct assigment

From: domen
Date: Thu Jul 07 2005 - 16:49:24 EST


From: aLeJ <fuzzy.alej@xxxxxxxxx>


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

Signed-off-by: Alejandro Andres <fuzzy.alej@xxxxxxxxx>
Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>

---
module.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

Index: quilt/kernel/module.c
===================================================================
--- quilt.orig/kernel/module.c
+++ quilt/kernel/module.c
@@ -556,7 +556,7 @@ static void wait_for_zero_refcount(struc
break;
schedule();
}
- current->state = TASK_RUNNING;
+ __set_current_state(TASK_RUNNING);
down(&module_mutex);
}


--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/