)]}'
{
  "commit": "5f49f63178360b07a095bd33b0d850d60edf7590",
  "tree": "23764399405214c115543eb5dec59982cf0baa26",
  "parents": [
    "3755100dd5f66761aaaa7ae44c70b319a7c78a56"
  ],
  "author": {
    "name": "Tejun Heo",
    "email": "tj@kernel.org",
    "time": "Tue May 19 18:33:05 2009 +0900"
  },
  "committer": {
    "name": "Jens Axboe",
    "email": "jens.axboe@oracle.com",
    "time": "Tue May 19 11:36:08 2009 +0200"
  },
  "message": "block: set rq-\u003eresid_len to blk_rq_bytes() on issue\n\nIn commit c3a4d78c580de4edc9ef0f7c59812fb02ceb037f, while introducing\nrq-\u003eresid_len, the default value of residue count was changed from\nfull count to zero.  The conversion was done under the assumption that\nwhen a request fails residue count wasn\u0027t defined.  However, Boaz and\nJames pointed out that this wasn\u0027t true and the residue count should\nbe preserved for failed requests too.\n\nThis patchset restores the original behavior by setting rq-\u003eresid_len\nto blk_rq_bytes(rq) on request start and restoring explicit clearing\nin affected drivers.  While at it, take advantage of the fact that\nrq-\u003eresid_len is set to full count where applicable.\n\n* ide-cd: rq-\u003eresid_len cleared on pc success\n\n* mptsas: req-\u003eresid_len cleared on success\n\n* sas_expander: rsp/req-\u003eresid_len cleared on success\n\n* mpt2sas_transport: req-\u003eresid_len cleared on success\n\n* ide-cd, ide-tape, mptsas, sas_host_smp, mpt2sas_transport, ub: take\n  advantage of initial full count to simplify code\n\nBoaz Harrosh spotted bug in resid_len initialization.  Fixed as\nsuggested.\n\nSigned-off-by: Tejun Heo \u003ctj@kernel.org\u003e\nAcked-by: Borislav Petkov \u003cpetkovbb@googlemail.com\u003e\nCc: Boaz Harrosh \u003cbharrosh@panasas.com\u003e\nCc: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\nCc: Pete Zaitcev \u003czaitcev@redhat.com\u003e\nCc: Bartlomiej Zolnierkiewicz \u003cbzolnier@gmail.com\u003e\nCc: Sergei Shtylyov \u003csshtylyov@ru.mvista.com\u003e\nCc: Eric Moore \u003cEric.Moore@lsi.com\u003e\nCc: Darrick J. Wong \u003cdjwong@us.ibm.com\u003e\nSigned-off-by: Jens Axboe \u003cjens.axboe@oracle.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a2d97de1a12c361e5e3dd0b8517dc7e6a6ede7c6",
      "old_mode": 33188,
      "old_path": "block/blk-core.c",
      "new_id": "e3f7e6a3a09576b7167383abdbe9722cab532134",
      "new_mode": 33188,
      "new_path": "block/blk-core.c"
    },
    {
      "type": "modify",
      "old_id": "f32781cff45666d4da0c1f2869d9c532a81f32e0",
      "old_mode": 33188,
      "old_path": "drivers/block/ub.c",
      "new_id": "e67bbae9547d1b3ac42cbbd1a243911789dbb94b",
      "new_mode": 33188,
      "new_path": "drivers/block/ub.c"
    },
    {
      "type": "modify",
      "old_id": "4c7792fd5f934edddbcf623bacd860e25a426289",
      "old_mode": 33188,
      "old_path": "drivers/ide/ide-cd.c",
      "new_id": "081aed6781cc182e9cda15ea8b90e908bad5d84e",
      "new_mode": 33188,
      "new_path": "drivers/ide/ide-cd.c"
    },
    {
      "type": "modify",
      "old_id": "e16604562f281e7485be4a858e1f96ac1e619e60",
      "old_mode": 33188,
      "old_path": "drivers/ide/ide-tape.c",
      "new_id": "683ff37d4079471ebe9b202ca2631b3e3164e33c",
      "new_mode": 33188,
      "new_path": "drivers/ide/ide-tape.c"
    },
    {
      "type": "modify",
      "old_id": "4e6fcf06a6f2d541300e38bdeeea6b766424cdff",
      "old_mode": 33188,
      "old_path": "drivers/message/fusion/mptsas.c",
      "new_id": "79f5433359f9b3fc1b346cb78b5d11dcd60d15de",
      "new_mode": 33188,
      "new_path": "drivers/message/fusion/mptsas.c"
    },
    {
      "type": "modify",
      "old_id": "531af9ed719912cfad5d24ea3380145c5c132268",
      "old_mode": 33188,
      "old_path": "drivers/scsi/libsas/sas_expander.c",
      "new_id": "54fa1e42dc4d2dfba29cdf52afd52d909af67139",
      "new_mode": 33188,
      "new_path": "drivers/scsi/libsas/sas_expander.c"
    },
    {
      "type": "modify",
      "old_id": "be9a951b977d8a471b7851523607ae13fb3e8b99",
      "old_mode": 33188,
      "old_path": "drivers/scsi/libsas/sas_host_smp.c",
      "new_id": "1bc3b75679947ac1d8bcca33d132835cf16854f8",
      "new_mode": 33188,
      "new_path": "drivers/scsi/libsas/sas_host_smp.c"
    },
    {
      "type": "modify",
      "old_id": "af95a449930ea18ffddd7a0d33673ea8b7704eb3",
      "old_mode": 33188,
      "old_path": "drivers/scsi/mpt2sas/mpt2sas_transport.c",
      "new_id": "5c65da519e39af511334816c18977912a4920637",
      "new_mode": 33188,
      "new_path": "drivers/scsi/mpt2sas/mpt2sas_transport.c"
    }
  ]
}
