)]}'
{
  "commit": "f51c0eaee39e306458d2bf8a30e010615fa451cc",
  "tree": "9e30381d84917c1ef727dac28691e648833c17df",
  "parents": [
    "fe4ba3c34352b7e8068b7f18eb233444aed17011"
  ],
  "author": {
    "name": "Chris Metcalf",
    "email": "cmetcalf@ezchip.com",
    "time": "Wed Jun 24 16:55:48 2015 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Jun 24 17:49:40 2015 -0700"
  },
  "message": "procfs: treat parked tasks as sleeping for task state\n\nAllowing watchdog threads to be parked means that we now have the\nopportunity of actually seeing persistent parked threads in the output\nof /proc/\u003cpid\u003e/stat and /proc/\u003cpid\u003e/status.  The existing code reported\nsuch threads as \"Running\", which is kind-of true if you think of the\ncase where we park them as part of taking cpus offline.  But if we allow\nparking them indefinitely, \"Running\" is pretty misleading, so we report\nthem as \"Sleeping\" instead.\n\nWe could simply report them with a new string, \"Parked\", but it feels\nlike it\u0027s a bit risky for userspace to see unexpected new values; the\noutput is already documented in Documentation/filesystems/proc.txt, and\nit seems like a mistake to change that lightly.\n\nThe scheduler does report parked tasks with a \"P\" in debugging output\nfrom sched_show_task() or dump_cpu_task(), but that\u0027s a different API.\nSimilarly, the trace_ctxwake_* routines report a \"P\" for parked tasks,\nbut again, different API.\n\nThis change seemed slightly cleaner than updating the task_state_array\nto have additional rows.  TASK_DEAD should be subsumed by the exit_state\nbits; TASK_WAKEKILL is just a modifier; and TASK_WAKING can very\nreasonably be reported as \"Running\" (as it is now).  Only TASK_PARKED\nshows up with unreasonable output here.\n\nSigned-off-by: Chris Metcalf \u003ccmetcalf@ezchip.com\u003e\nCc: Don Zickus \u003cdzickus@redhat.com\u003e\nCc: Ingo Molnar \u003cmingo@kernel.org\u003e\nCc: Ulrich Obergfell \u003cuobergfe@redhat.com\u003e\nCc: Thomas Gleixner \u003ctglx@linutronix.de\u003e\nCc: Peter Zijlstra \u003cpeterz@infradead.org\u003e\nCc: Frederic Weisbecker \u003cfweisbec@gmail.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fd02a9ebfc30e5086bf45e19b3aa6ca8d1e13e2a",
      "old_mode": 33188,
      "old_path": "fs/proc/array.c",
      "new_id": "3f57dac31ba66983f4f1295ff9fc99ff15211e4c",
      "new_mode": 33188,
      "new_path": "fs/proc/array.c"
    }
  ]
}
