@@ -75,14 +75,14 @@ struct user_event_mm;
75
75
* Task state bitmask. NOTE! These bits are also
76
76
* encoded in fs/proc/array.c: get_task_state().
77
77
*
78
- * We have two separate sets of flags: task->state
78
+ * We have two separate sets of flags: task->__state
79
79
* is about runnability, while task->exit_state are
80
80
* about the task exiting. Confusing, but this way
81
81
* modifying one set can't modify the other one by
82
82
* mistake.
83
83
*/
84
84
85
- /* Used in tsk->state : */
85
+ /* Used in tsk->__state : */
86
86
#define TASK_RUNNING 0x00000000
87
87
#define TASK_INTERRUPTIBLE 0x00000001
88
88
#define TASK_UNINTERRUPTIBLE 0x00000002
@@ -92,7 +92,7 @@ struct user_event_mm;
92
92
#define EXIT_DEAD 0x00000010
93
93
#define EXIT_ZOMBIE 0x00000020
94
94
#define EXIT_TRACE (EXIT_ZOMBIE | EXIT_DEAD)
95
- /* Used in tsk->state again: */
95
+ /* Used in tsk->__state again: */
96
96
#define TASK_PARKED 0x00000040
97
97
#define TASK_DEAD 0x00000080
98
98
#define TASK_WAKEKILL 0x00000100
@@ -173,7 +173,7 @@ struct user_event_mm;
173
173
#endif
174
174
175
175
/*
176
- * set_current_state() includes a barrier so that the write of current->state
176
+ * set_current_state() includes a barrier so that the write of current->__state
177
177
* is correctly serialised wrt the caller's subsequent test of whether to
178
178
* actually sleep:
179
179
*
@@ -196,9 +196,9 @@ struct user_event_mm;
196
196
* wake_up_state(p, TASK_UNINTERRUPTIBLE);
197
197
*
198
198
* where wake_up_state()/try_to_wake_up() executes a full memory barrier before
199
- * accessing p->state .
199
+ * accessing p->__state .
200
200
*
201
- * Wakeup will do: if (@state & p->state ) p->state = TASK_RUNNING, that is,
201
+ * Wakeup will do: if (@state & p->__state ) p->__state = TASK_RUNNING, that is,
202
202
* once it observes the TASK_UNINTERRUPTIBLE store the waking CPU can issue a
203
203
* TASK_RUNNING store which can collide with __set_current_state(TASK_RUNNING).
204
204
*
0 commit comments