)]}'
{
  "commit": "7fb98ea79cecb14fc1735544146be06fdb1944c3",
  "tree": "1110c0288884b507b1fcf4dddb823ea626415be2",
  "parents": [
    "420c0ddb1f205a3511b766d0dfee2cc87ed9dae0"
  ],
  "author": {
    "name": "Tejun Heo",
    "email": "tj@kernel.org",
    "time": "Tue Mar 12 11:30:00 2013 -0700"
  },
  "committer": {
    "name": "Tejun Heo",
    "email": "tj@kernel.org",
    "time": "Tue Mar 12 11:30:00 2013 -0700"
  },
  "message": "workqueue: replace get_pwq() with explicit per_cpu_ptr() accesses and first_pwq()\n\nget_pwq() takes @cpu, which can also be WORK_CPU_UNBOUND, and @wq and\nreturns the matching pwq (pool_workqueue).  We want to move away from\nusing @cpu for identifying pools and pwqs for unbound pools with\ncustom attributes and there is only one user - workqueue_congested() -\nwhich makes use of the WQ_UNBOUND conditional in get_pwq().  All other\nusers already know whether they\u0027re dealing with a per-cpu or unbound\nworkqueue.\n\nReplace get_pwq() with explicit per_cpu_ptr(wq-\u003ecpu_pwqs, cpu) for\nper-cpu workqueues and first_pwq() for unbound ones, and open-code\nWQ_UNBOUND conditional in workqueue_congested().\n\nNote that this makes workqueue_congested() behave sligntly differently\nwhen @cpu other than WORK_CPU_UNBOUND is specified.  It ignores @cpu\nfor unbound workqueues and always uses the first pwq instead of\noopsing.\n\nSigned-off-by: Tejun Heo \u003ctj@kernel.org\u003e\nReviewed-by: Lai Jiangshan \u003claijs@cn.fujitsu.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "acee7b525d51bd0ea0621bba43301725e18f677d",
      "old_mode": 33188,
      "old_path": "kernel/workqueue.c",
      "new_id": "577ac719eaece7a7d82826c1869ab02f2eb5be13",
      "new_mode": 33188,
      "new_path": "kernel/workqueue.c"
    }
  ]
}
