1. 28 4月, 2008 15 次提交
  2. 27 4月, 2008 1 次提交
  3. 25 4月, 2008 1 次提交
    • J
      [SCSI] aha152x, eata, u14-34f: minor irq handler cleanups · e19166d5
      Jeff Garzik 提交于
      - remove pointless casts from void*
      
      - remove needless references to 'irq' function argument, when that
        information is already stored somewhere in a driver-private struct.
      
      - where the 'irq' function argument is known never to be used, rename
        it to 'dummy' to make this more obvious
      
      - remove always-false tests for dev_id==NULL
      
      - remove always-true tests for 'irq == host_struct->irq'
      
      - replace per-irq lookup functions and tables with a direct reference
        to data object obtained via 'dev_id' function argument, passed from
        request_irq()
      
      This change's main purpose is to prepare for the patchset in
      jgarzik/misc-2.6.git#irq-remove, that explores removal of the
      never-used 'irq' argument in each interrupt handler.
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      e19166d5
  4. 24 4月, 2008 3 次提交
  5. 23 4月, 2008 8 次提交
  6. 21 4月, 2008 1 次提交
    • F
      block: move the padding adjustment to blk_rq_map_sg · f18573ab
      FUJITA Tomonori 提交于
      blk_rq_map_user adjusts bi_size of the last bio. It breaks the rule
      that req->data_len (the true data length) is equal to sum(bio). It
      broke the scsi command completion code.
      
      commit e97a294e was introduced to fix
      the above issue. However, the partial completion code doesn't work
      with it. The commit is also a layer violation (scsi mid-layer should
      not know about the block layer's padding).
      
      This patch moves the padding adjustment to blk_rq_map_sg (suggested by
      James). The padding works like the drain buffer. This patch breaks the
      rule that req->data_len is equal to sum(sg), however, the drain buffer
      already broke it. So this patch just restores the rule that
      req->data_len is equal to sub(bio) without breaking anything new.
      
      Now when a low level driver needs padding, blk_rq_map_user and
      blk_rq_map_user_iov guarantee there's enough room for padding.
      blk_rq_map_sg can safely extend the last entry of a scatter list.
      
      blk_rq_map_sg must extend the last entry of a scatter list only for a
      request that got through bio_copy_user_iov. This patches introduces
      new REQ_COPY_USER flag.
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Cc: Tejun Heo <htejun@gmail.com>
      Cc: Mike Christie <michaelc@cs.wisc.edu>
      Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      f18573ab
  7. 20 4月, 2008 1 次提交
  8. 19 4月, 2008 5 次提交
  9. 18 4月, 2008 5 次提交