)]}'
{
  "commit": "02ab823fd1a27d193bda06b74fdad685a20a3e5e",
  "tree": "04b3db6e494f483fef34a55e487e88f6d7c585a5",
  "parents": [
    "2bd023452592e5f5cf90dd426cc39b7632b15b76"
  ],
  "author": {
    "name": "Kiyoshi Ueda",
    "email": "k-ueda@ct.jp.nec.com",
    "time": "Mon Jun 22 10:12:27 2009 +0100"
  },
  "committer": {
    "name": "Alasdair G Kergon",
    "email": "agk@redhat.com",
    "time": "Mon Jun 22 10:12:27 2009 +0100"
  },
  "message": "dm mpath: add start_io and nr_bytes to path selectors\n\nThis patch makes two additions to the dm path selector interface for\ndynamic load balancers:\n  o a new hook, start_io()\n  o a new parameter \u0027nr_bytes\u0027 to select_path()/start_io()/end_io()\n    to pass the size of the I/O\n\nstart_io() is called when a target driver actually submits I/O\nto the selected path.\nPath selectors can use it to start accounting of the I/O.\n(e.g. counting the number of in-flight I/Os.)\nThe start_io hook is based on the patch posted by Stefan Bader:\nhttps://www.redhat.com/archives/dm-devel/2005-October/msg00050.html\n\nnr_bytes, the size of the I/O, is so path selectors can take the\nsize of the I/O into account when deciding which path to use.\ndm-service-time uses it to estimate service time, for example.\n(Added the nr_bytes member to dm_mpath_io instead of using existing\n details.bi_size, since request-based dm patch deletes it.)\n\nSigned-off-by: Stefan Bader \u003cstefan.bader@canonical.com\u003e\nSigned-off-by: Kiyoshi Ueda \u003ck-ueda@ct.jp.nec.com\u003e\nSigned-off-by: Jun\u0027ichi Nomura \u003cj-nomura@ce.jp.nec.com\u003e\nSigned-off-by: Alasdair G Kergon \u003cagk@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f1cf8f7449d69b72a2b57e51d0dde3c4fd649d45",
      "old_mode": 33188,
      "old_path": "drivers/md/dm-mpath.c",
      "new_id": "890c0e8ed13eaae7d78c75f81eb3503314d1dac2",
      "new_mode": 33188,
      "new_path": "drivers/md/dm-mpath.c"
    },
    {
      "type": "modify",
      "old_id": "27357b85d73d7495cbcb2d61e8522ac942317901",
      "old_mode": 33188,
      "old_path": "drivers/md/dm-path-selector.h",
      "new_id": "e7d1fa8b0459f3deaadc16a34a09231764073fbc",
      "new_mode": 33188,
      "new_path": "drivers/md/dm-path-selector.h"
    },
    {
      "type": "modify",
      "old_id": "cdfbf65b28cb0fb5d4af95d9e6718d80d69be760",
      "old_mode": 33188,
      "old_path": "drivers/md/dm-round-robin.c",
      "new_id": "24752f449bef8834b8ebb0329293491bdf4f07ed",
      "new_mode": 33188,
      "new_path": "drivers/md/dm-round-robin.c"
    }
  ]
}
