Skip to contentSkip to conversation

+ wait-swap-exit_zombiez-and-exit_deadx-chars-in-task_state_to_char_str.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 22, 2014 Scheduler

lore
Share & tools
lore
#0 lore raw

Subject: + wait-swap-exit_zombiez-and-exit_deadx-chars-in-task_state_to_char_str.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 22 May 2014 10:21:51 -0700

The patch titled
Subject: wait: swap EXIT_ZOMBIE(Z) and EXIT_DEAD(X) chars in TASK_STATE_TO_CHAR_STR
has been added to the -mm tree. Its filename is
wait-swap-exit_zombiez-and-exit_deadx-chars-in-task_state_to_char_str.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/wait-swap-exit_zombiez-and-exit_deadx-chars-in-task_state_to_char_str.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/wait-swap-exit_zombiez-and-exit_deadx-chars-in-task_state_to_char_str.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Masatake YAMATO <[email protected]>
Subject: wait: swap EXIT_ZOMBIE(Z) and EXIT_DEAD(X) chars in TASK_STATE_TO_CHAR_STR

In ad86622b478eaafdc ("wait: swap EXIT_ZOMBIE and EXIT_DEAD to hide EXIT_TRACE from user-space") the order of task state definitions were
changed: EXIT_DEAD and EXIT_ZOMBIE were swapped. Though the charterers for the states in TASK_STATE_TO_CHAR_STR string were not updated. This patch synchronizes the string to the order of definitions.

---

 include/linux/sched.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/sched.h renamed from include/linux/sched.h~wait-swap-exit_zombiez-and-exit_deadx-chars-in-task_state_to_char_str +1 -1
diff -puN include/linux/sched.h~wait-swap-exit_zombiez-and-exit_deadx-chars-in-task_state_to_char_str include/linux/sched.h
@@ -220,7 +220,7 @@ print_cfs_rq(struct seq_file *m, int cpu
 #define TASK_PARKED		512
 #define TASK_STATE_MAX		1024
 
-#define TASK_STATE_TO_CHAR_STR "RSDTtZXxKWP"
+#define TASK_STATE_TO_CHAR_STR "RSDTtXZxKWP"
 
 extern char ___assert_task_state[1 - 2*!!(
 		sizeof(TASK_STATE_TO_CHAR_STR)-1 != ilog2(TASK_STATE_MAX)+1)];

_

Patches currently in -mm which might be from [email protected] are

wait-swap-exit_zombiez-and-exit_deadx-chars-in-task_state_to_char_str.patch