)]}'
{
  "commit": "fa0ccd837e3dddb44c7db2f128a8bb7e4eabc21a",
  "tree": "ade071502f3e7cba423295890d828f0f301ad731",
  "parents": [
    "5d84070ee0a433620c57e85dac7f82faaec5fbb3"
  ],
  "author": {
    "name": "James Bottomley",
    "email": "James.Bottomley@HansenPartnership.com",
    "time": "Thu Jan 10 11:30:36 2008 -0600"
  },
  "committer": {
    "name": "Jens Axboe",
    "email": "jens.axboe@oracle.com",
    "time": "Mon Jan 28 10:54:11 2008 +0100"
  },
  "message": "block: implement drain buffers\n\nThese DMA drain buffer implementations in drivers are pretty horrible\nto do in terms of manipulating the scatterlist.  Plus they\u0027re being\ndone at least in drivers/ide and drivers/ata, so we now have code\nduplication.\n\nThe one use case for this, as I understand it is AHCI controllers doing\nPIO mode to mmc devices but translating this to DMA at the controller\nlevel.\n\nSo, what about adding a callback to the block layer that permits the\nadding of the drain buffer for the problem devices.  The idea is that\nyou\u0027d do this in slave_configure after you find one of these devices.\n\nThe beauty of doing it in the block layer is that it quietly adds the\ndrain buffer to the end of the sg list, so it automatically gets mapped\n(and unmapped) without anything unusual having to be done to the\nscatterlist in driver/scsi or drivers/ata and without any alteration to\nthe transfer length.\n\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\nSigned-off-by: Jens Axboe \u003cjens.axboe@oracle.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f9736fbdab0308f7121694df2faa3ffa68258994",
      "old_mode": 33188,
      "old_path": "block/elevator.c",
      "new_id": "8cd5775acd7a2d4c1111acb0f823a57a46819dc0",
      "new_mode": 33188,
      "new_path": "block/elevator.c"
    },
    {
      "type": "modify",
      "old_id": "3d0422f48453c0019ad8d1de25eaa4643bb379fe",
      "old_mode": 33188,
      "old_path": "block/ll_rw_blk.c",
      "new_id": "768987dc2697501921a606e22078b879a24f8fd3",
      "new_mode": 33188,
      "new_path": "block/ll_rw_blk.c"
    },
    {
      "type": "modify",
      "old_id": "c7a3ab575c24ec20ca50d32f9a9cab799ee0a9aa",
      "old_mode": 33188,
      "old_path": "include/linux/blkdev.h",
      "new_id": "e542c8fd9215208838ed8c5233044e70a394724e",
      "new_mode": 33188,
      "new_path": "include/linux/blkdev.h"
    }
  ]
}
