)]}'
{
  "commit": "02e7cf8f848841ca21864ccd019e480b73c323b7",
  "tree": "eb8b88b0b253f7063bfbee063df817fbac6eb60f",
  "parents": [
    "068753203e6cd085664a62e0fc0636e19b148a12"
  ],
  "author": {
    "name": "Tejun Heo",
    "email": "tj@kernel.org",
    "time": "Sun Apr 19 07:00:42 2009 +0900"
  },
  "committer": {
    "name": "Jens Axboe",
    "email": "jens.axboe@oracle.com",
    "time": "Tue Apr 28 07:37:30 2009 +0200"
  },
  "message": "ide-cd,atapi: use bio for internal commands\n\nImpact: unify request data buffer handling\n\nrq-\u003edata is used mostly to pass kernel buffer through request queue\nwithout using bio.  There are only a couple of places which still do\nthis in kernel and converting to bio isn\u0027t difficult.\n\nThis patch converts ide-cd and atapi to use bio instead of rq-\u003edata\nfor request sense and internal pc commands.  With previous change to\nunify sense request handling, this is relatively easily achieved by\nadding blk_rq_map_kern() during sense_rq prep and PC issue.\n\nIf blk_rq_map_kern() fails for sense, the error is deferred till sense\nissue and aborts the failed command which triggered the sense.  Note\nthat this is a slim possibility as sense prep is done on each command\nissue, so for the above condition to actually trigger, all preps since\nthe last sense issue till the issue of the request which would require\na sense should fail.\n\n* do_request functions might sleep now.  This should be okay as ide\n  request_fn - do_ide_request() - is invoked only from make_request\n  and plug work.  Make sure this is the case by adding might_sleep()\n  to do_ide_request().\n\n* Functions which access the read sense data before the sense request\n  is complete now should access bio_data(sense_rq-\u003ebio) as the sense\n  buffer might have been copied during blk_rq_map_kern().\n\n* ide-tape updated to map sg.\n\n* cdrom_do_block_pc() now doesn\u0027t have to deal with REQ_TYPE_ATA_PC\n  special case.  Simplified.\n\n* tp_ops-\u003eoutput/input_data path dropped from ide_pc_intr().\n\nSigned-off-by: Tejun Heo \u003ctj@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "972c522516f8faba972b06159bf9a5113a74449c",
      "old_mode": 33188,
      "old_path": "drivers/ide/ide-atapi.c",
      "new_id": "5cefe12f5622bbe905243af55bf9ffb71fd9b023",
      "new_mode": 33188,
      "new_path": "drivers/ide/ide-atapi.c"
    },
    {
      "type": "modify",
      "old_id": "061d7bbcd34a328b950b59618b2d297b605f4fbc",
      "old_mode": 33188,
      "old_path": "drivers/ide/ide-cd.c",
      "new_id": "673628790f1088c3e70d6e2eb131f0cd730fcdf3",
      "new_mode": 33188,
      "new_path": "drivers/ide/ide-cd.c"
    },
    {
      "type": "modify",
      "old_id": "9b9e8b1aae5ee40da15ba905a4bb8ca295d3a2a5",
      "old_mode": 33188,
      "old_path": "drivers/ide/ide-io.c",
      "new_id": "3245c2dbda339c6126d1e043ae6bcd62d58592de",
      "new_mode": 33188,
      "new_path": "drivers/ide/ide-io.c"
    },
    {
      "type": "modify",
      "old_id": "8324dfa78a3f971f4c3090cfaabc4d1daa4b67b2",
      "old_mode": 33188,
      "old_path": "drivers/ide/ide-tape.c",
      "new_id": "9b762a2d5d955f510b3755ca7e3fefdd2f5f3c20",
      "new_mode": 33188,
      "new_path": "drivers/ide/ide-tape.c"
    },
    {
      "type": "modify",
      "old_id": "9e67ccac3c1f1d1ae3c682d2d3db79097a3d27fe",
      "old_mode": 33188,
      "old_path": "include/linux/ide.h",
      "new_id": "1957461ac762cad1988b5ed2a3f893c56786655c",
      "new_mode": 33188,
      "new_path": "include/linux/ide.h"
    }
  ]
}
