)]}'
{
  "commit": "d4828d85d188dc70ed172802e798d3978bb6e29e",
  "tree": "11e70b1c93b25c5e2c9a1547e23086fc9a76d287",
  "parents": [
    "5e2707fa3aed8c24075087cbaea2628725adbe55"
  ],
  "author": {
    "name": "Herbert Xu",
    "email": "herbert@gondor.apana.org.au",
    "time": "Thu Jun 22 02:28:18 2006 -0700"
  },
  "committer": {
    "name": "David S. Miller",
    "email": "davem@sunset.davemloft.net",
    "time": "Fri Jun 23 02:07:26 2006 -0700"
  },
  "message": "[NET]: Prevent transmission after dev_deactivate\n\nThe dev_deactivate function has bit-rotted since the introduction of\nlockless drivers.  In particular, the spin_unlock_wait call at the end\nhas no effect on the xmit routine of lockless drivers.\n\nWith a little bit of work, we can make it much more useful by providing\nthe guarantee that when it returns, no more calls to the xmit routine\nof the underlying driver will be made.\n\nThe idea is simple.  There are two entry points in to the xmit routine.\nThe first comes from dev_queue_xmit.  That one is easily stopped by\nusing synchronize_rcu.  This works because we set the qdisc to noop_qdisc\nbefore the synchronize_rcu call.  That in turn causes all subsequent\npackets sent to dev_queue_xmit to be dropped.  The synchronize_rcu call\nalso ensures all outstanding calls leave their critical section.\n\nThe other entry point is from qdisc_run.  Since we now have a bit that\nindicates whether it\u0027s running, all we have to do is to wait until the\nbit is off.\n\nI\u0027ve removed the loop to wait for __LINK_STATE_SCHED to clear.  This is\nuseless because netif_wake_queue can cause it to be set again.  It is\nalso harmless because we\u0027ve disarmed qdisc_run.\n\nI\u0027ve also removed the spin_unlock_wait on xmit_lock because its only\npurpose of making sure that all outstanding xmit_lock holders have\nexited is also given by dev_watchdog_down.\n\nSigned-off-by: Herbert Xu \u003cherbert@gondor.apana.org.au\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ab39fe17cb58bd0a49ce65376e279347a46fe248",
      "old_mode": 33188,
      "old_path": "net/core/dev.c",
      "new_id": "29e3888102bc7a014cf93a62180984c4cbab8d04",
      "new_mode": 33188,
      "new_path": "net/core/dev.c"
    },
    {
      "type": "modify",
      "old_id": "d7aca8ef524ab8f9ea9d01b986d0ea7a88c72c3a",
      "old_mode": 33188,
      "old_path": "net/sched/sch_generic.c",
      "new_id": "7aad0121232cb3aa555572524d7609f061718f65",
      "new_mode": 33188,
      "new_path": "net/sched/sch_generic.c"
    }
  ]
}
